search for: robster3

Displaying 2 results from an estimated 2 matches for "robster3".

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
2008 Jul 23
0
Fw: Using if, else statements
...quot;tue","wed","thu","fri","sat","sun") > my.df$NewAdm <- my.df$admissions * weight[as.character(my.df$d.o.w)] > > my.df > > Gabriela > > > > ----- Original Message ----- > From: "Robin Williams" <robster3 at hotmail.com> > To: <r-help at r-project.org> > Sent: Wednesday, July 23, 2008 12:44 PM > Subject: [R] Using if, else statements > > >> Hi all, >> >> Again I have searched the net and so on, without finding an answer to >> this >> surely simp...