Re: [R] more dates and data frames

2010-06-08 Thread Bill.Venables
Wednesday, 9 June 2010 5:52 AM To: R help Subject: [R] more dates and data frames Dear R People: So thanks to your help, I have the following: > dog3.df <- > read.delim("c:/Users/erin/Documents/dog1.txt",header=FALSE,sep="\t") > dog3.df V1 V2 1 1/1

Re: [R] more dates and data frames

2010-06-08 Thread Gabor Grothendieck
Once again my message got held up for moderator approval so I am deleting it and trying again. Hopefully this one goes through. In general, we will get the simplest usage if we match the problem to the appropriate OO class. In this case we are using time series so it is advantageous to use a time

Re: [R] more dates and data frames

2010-06-08 Thread Henrique Dallazuanna
Try this: xtabs( ~ V1 + V2, transform(dog3.df, V1 = factor(V1, levels = as.character(seq(min(dog3.df$V1), max(dog3.df$V1), by = "days") On Tue, Jun 8, 2010 at 4:52 PM, Erin Hodgess wrote: > Dear R People: > > So thanks to your help, I have the following: > > > > dog3.df <- > read.delim("c:/

[R] more dates and data frames

2010-06-08 Thread Erin Hodgess
Dear R People: So thanks to your help, I have the following: > dog3.df <- > read.delim("c:/Users/erin/Documents/dog1.txt",header=FALSE,sep="\t") > dog3.df V1 V2 1 1/1/2000 dog 2 1/1/2000 cat 3 1/1/2000 tree 4 1/1/2000 dog 5 1/2/2000 cat 6 1/2/2000 cat 7 1/2/2000 cat 8 1