Thanks, Y On Fri, Jul 20, 2012 at 11:47 AM, R. Michael Weylandt < michael.weyla...@gmail.com> wrote:
> d$date <- factor(d$date) > > Best, > Michael > > On Fri, Jul 20, 2012 at 9:44 AM, Yolande Tra <yolande....@gmail.com> > wrote: > > Hello, > > > > I would like to convert date as a factor to represent time in a repeated > > measure situation in the following code. How would I do that? > >> d <- read.csv(file.path(dataDir,"data.csv"), as.is=T,stringsAsFactors > = > > FALSE) > >> d[1:2,] > > id date a b c y > > 1 1 8/6/2008 Red 15 B 22 > > 2 1 8/6/2008 Green 15 B 22 > > Thank you, > > Y > > > > [[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-guide.html<http://www.r-project.org/posting-guide.html> > > and provide commented, minimal, self-contained, reproducible code. > [[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-guide.html and provide commented, minimal, self-contained, reproducible code.