Re: [R] length() of vector after using strptime()

2003-10-10 Thread Prof Brian Ripley
You have a POSIXlt object, a list of length 9. Try ?as.POSIXct. On 10 Oct 2003, David Whiting wrote: > > Hi, > > I am trying to parse a date (that is read in as a factor) and add it > to a dataframe. The length of the parsed date is shorter than the > length of unparsed date and I therefore c

[R] length() of vector after using strptime()

2003-10-10 Thread David Whiting
Hi, I am trying to parse a date (that is read in as a factor) and add it to a dataframe. The length of the parsed date is shorter than the length of unparsed date and I therefore cannot add it to the dataframe: > x [1] 20030807 20030807 20030807 20030808 20030809 20030809 20030809 20030809