search for: maxitemp

Displaying 4 results from an estimated 4 matches for "maxitemp".

Did you mean: max_temp
2008 Jul 24
4
Just 2 more questions - for now!
...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@met...
2008 Aug 18
2
Using lag
Dear all, I am having difficulties using the seemingly-simple function lag. I have a dataframe with several weather variables (maxitemp, windspeed, rainfall etc), and the response variable (admissions). The dataset is fairly large (1530 observations). I simply want to model the response against a lag of a couple of the explanatory variables, say maxitemp and rainfall. I would like to look at lagtimes of 4 days, i.e. 4 observations....
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" Multipl...
2008 Jul 23
0
Fw: Using if, else statements
...t; 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 >&g...