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
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
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:/
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
4 matches
Mail list logo