Re: [R] correcting a few data in an unreshaped data frame

2010-06-09 Thread Mr. Natural
Joris: Very, very nice. I have spent the day learning about indices. Thank you very much. Mr. Natural -- View this message in context: http://r.789695.n4.nabble.com/correcting-a-few-data-in-an-unreshaped-data-frame-tp2248219p2249599.html Sent from the R help mailing list archive at Nabble.com

[R] correcting a few data in an unreshaped data frame

2010-06-08 Thread Mr. Natural
$ wwG : int 0 0 0 0 2 0 0 5 1 0 ... - attr(*, "na.action")=Class 'omit' Named int [1:81] 1 49 65 177 201 257 337 417 449 505 ... .. ..- attr(*, "names")= chr [1:81] "1" "49" "65" "177" ... Your kind advice is very muc

Re: [R] correcting a few data in a large data frame. Thanks

2010-05-31 Thread Mr. Natural
David: Thanks. I cannot believe that I had not tried the simple, lwf[lwf$bushno==145 , "bout3"] <- 1 I will mess around with the runs suggestion too. Thanks, Don -- View this message in context: http://r.789695.n4.nabble.com/correcting-a-few-data-in-a-large-data-frame-tp2237834p2237892.html S

Re: [R] correcting a few data in a large data frame

2010-05-31 Thread Mr. Natural
Dennis. Tres cool. I will try it. regards, MN -- View this message in context: http://r.789695.n4.nabble.com/correcting-a-few-data-in-a-large-data-frame-tp2237834p2237891.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-projec

[R] correcting a few data in a large data frame

2010-05-31 Thread Mr. Natural
The data frame is lwf that records the survival of bushes over an 8 year period. Years are called bouts. Dead bushes are recorded as zeros, and live bushes as "1." str(lwf) 'data.frame': 638 obs. of 9 variables: $ bushno: int 1 2 3 4 5 6 7 8 9 10 ... $ bout1 : int 0 1 0 1 1 1 0 1 0 1 ...

[R] problem with as.Date

2008-06-11 Thread Mr Natural
Data into R from Excel csv file xd<-read.csv("court.dates1.txt",as.is=T, header = F) > str(xd) 'data.frame': 5 obs. of 1 variable: $ V1: chr "6/6" "5/27" "5/16" "5/2" ... >xd V1 1 6/6 2 5/27 3 5/16 4 5/2 5 4/29 cdates <- as.Date(xd, format = " %m/ %d") Error in as.Date.default(xd, f