Hello, all.
I ran across an odd problem while working in R 2.6.0. The command line text follows. Basically, I attempted to convert a character vector of length 13 (in a data frame with 13 rows) from a character representation of dates to a POSIX representation using strptime. strptime returned a vector of length 9, which appears to contain 13 values (!) in the appropriate format.
I can't find any way to convince the strptime output that it has 13 values . . . even though (for example) posixvector[1:13] returns 13 values, anothervectorof length13<-posixvector[1:13] produces a length mismatch error.
Can anyone help diagnose this, or work around it?
Many thanks,
~Pat Carroll.
Error in `$<-.data.frame`(`*tmp*`, "DateFilled", value = list(sec = c(0, :
replacement has 9 rows, data has 13
Dataset$DateFilled<-datefilledpos[1:13]
Error in `$<-.data.frame`(`*tmp*`, "DateFilled", value = list(sec = c(0, :
replacement has 9 rows, data has 13
Pat Carroll.
what matters most is how well you walk through the fire.
bukowski.
____________________________________________________________________________________
Be a better friend, newshound, and