Re: [R] extract values ​​for the dates and a new column

2012-03-14 Thread Jeff Newmiller
The error seems clear enough to me... you are trying to mix vectors of different lengths where one length is not a multiple of the other length. Your discussion is pretty confused though, referring to possible data frames x, x.sub, x.res and Dataset. You might benefit from reviewing ?str and ?dp

[R] extract values ​​for the dates and a new column

2012-03-14 Thread RMSOPS
#add column Start Hello Good Afternoon I am trying to create a new column in the data frame, the target is based on a column of dates to extract a value of life and add a new column to data frame f<-x.res$T-x.res$duration Dataset$StarEvent<-(as.character.POSIXt(f)) x.sub$T is: [1] "2006-10-31