Hi,
Try this:
dat1<-read.table(text="
id date a b c y
1 1 8/6/2008 Red 15 B 22
2 1 8/6/2008 Green 15 B 22
",sep="",header=TRUE)
dat1$date<-with(dat1,as.factor(date))
dat1
id date a b c y
1 1 8/6/2008 Red
Thanks,
Y
On Fri, Jul 20, 2012 at 1:02 PM, arun wrote:
> Hi,
>
> Try this:
> dat1<-read.table(text="
>iddateab cy
> 1 1 8/6/2008Red15B 22
> 2 1 8/6/2008 Green 15B 22
> ",sep="",header=TRUE)
> dat1$date<-with(
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
> wrote:
> > Hello,
> >
> > I would like to convert date as a factor to represent time in a repeate
d$date <- factor(d$date)
Best,
Michael
On Fri, Jul 20, 2012 at 9:44 AM, Yolande Tra 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=
4 matches
Mail list logo