Re: [R] Data frame which includes a non-existent date

2014-09-22 Thread Frank S.
Thanks Richard! [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-gu

Re: [R] Data frame which includes a non-existent date

2014-09-18 Thread Richard M. Heiberger
Frank, Dates are extremely difficult. I recommend you do not attempt to do your own data computations with paste(). Use the lubridate package. > install.packages(lubridate) > library(lubridate) Read the end section of > vignette("lubridate") >From that you will most likely be wanting one of thes

[R] Data frame which includes a non-existent date

2014-09-18 Thread Frank S.
Hi to all members of the list, I have a data frame with subjects who can get into a certain study from 2010-01-01 onwards. Small example: DF <- data.frame(id=as.factor(1:3), born=as.Date(c("1939/10/28", "1946/02/23", "1948/02/29"))) id born 1 1 1939-10-28 2 2 1946-02-23 3 3 1948