i think you need to do
install.packages("WhatIf")
library(WhatIf)
...and then, this
whatif.result <- whatif (data= bioChem1, cfact=bioChem2)
should work
On Tue, Apr 7, 2009 at 11:18 AM, Sander, Thomas <tom_sander at harvard.edu>wrote:
One more PS7 question. Has anyone figured out how to
get WhatIf to work
for Section 3?
I followed the instructions in various sites on the web and put this in R
install.packages ("WhatIf", dependencies = TRUE)
install.packages("lpSolve")
It seems to load both packages, but when I try a command like
whatif.result <- whatif (data= bioChem1, cfact=bioChem2)
summary (whatif.result)
It says it doesn?t recognize a function called whatif even though that
seems to be how one is supposed to call this function.
Any luck? What else do I have to do to load whatif.
Many thanks.
Best.
Tom
_______________________________________________
gov2001-l mailing list
gov2001-l at
lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l