Hi all, 
Thanks for the help with my previous post. 
I have just two more questions for the minute. 
  I think I said in a previous post that I like to use the terminal,
i.e. run rterm.exe. On exiting the terminal, I am asked if I want to
save the workspace. If I hit y (yes), the workspace is just saved as
.rdata in my working directory, does anyone know how I can name it
directly from the terminal? 
  More importantly, I can't then open this file from the terminal.
Obviously loading the file from windows explorer brings up the GUI.
Anyone know the command I need? All I can think of doing is adding
rterm.exe to my path and running it from the command prompt (adding the
file as an argument to my command), but surely there is an easy way to
do this from R? Of course I would like to have the terminal open and
open and close various workspaces in one session, without wanting to
restart R all the time. 
 
  Finally, I rather embarrasingly can't get lm to work despite reading
the help. I can get it to work with a single explanatory variable, EG 
model <- lm(data$admissions~data$maxitemp)
but how to include a second explanatory variable (minitemp)? I keep
getting errors. Surely I don't need to use
c(data$maxitemp,data$minitemp) etc? 
 
All help greatly appreciated - I am getting there slowly!    
 

Robin Williams
Met Office summer intern - Health Forecasting
robin.williams@metoffice.gov.uk 

 

	[[alternative HTML version deleted]]

