search for: minitemp

Displaying 3 results from an estimated 3 matches for "minitemp".

2008 Jul 24
4
Just 2 more questions - for now!
...ne 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]]
2008 Jul 23
6
Using if, else statements
Hi all, Again I have searched the net and so on, without finding an answer to this surely simple problem. A short bit of code would be appreciated. I have a object named `data' with the following column headings. Date, maxitemp, minitemp, admissions, d.o.w. Where d.o.w. is day of the week, written "Sun" "Mon" etc. I just need to scale the Monday admissions by 0.91, the Saturday admissions by 1.21 and the Sunday admissions by 1.22. So basically what I want is: If d.o.w. == "Sat" Multiply Sat admi...
2008 Jul 23
0
Fw: Using if, else statements
...>> >> Again I have searched the net and so on, without finding an answer to >> this >> surely simple problem. A short bit of code would be appreciated. >> >> I have a object named `data' with the following column headings. >> >> Date, maxitemp, minitemp, admissions, d.o.w. >> >> Where d.o.w. is day of the week, written "Sun" "Mon" etc. >> >> I just need to scale the Monday admissions by 0.91, the Saturday >> admissions by 1.21 and the Sunday admissions by 1.22. So basically what I >> want is...