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
$ 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
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
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
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 ...
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
6 matches
Mail list logo