Try this:
as.chron(date.time, "%Y%m%d%H%M%S")
On Thu, Aug 13, 2009 at 12:59 PM, stephen sefick wrote:
> These are date and times in the format MMDDhhmmss. I would like
> to take this column and make a chron object form them. I have tried a
> couple of the split family of functions but they
01064500, 1985100107,
19851001071500, 19851001073000)
--- On Thu, 8/13/09, stephen sefick wrote:
> From: stephen sefick
> Subject: [R] split number in a vector and then make a chron object out of it
> To: r-help@r-project.org
> Received: Thursday, August 13, 2009, 12:59 PM
> These ar
Try this:
strptime(date.time, "%Y%m%d%H%M%s")
On Thu, Aug 13, 2009 at 1:59 PM, stephen sefick wrote:
> These are date and times in the format MMDDhhmmss. I would like
> to take this column and make a chron object form them. I have tried a
> couple of the split family of functions but they
These are date and times in the format MMDDhhmmss. I would like
to take this column and make a chron object form them. I have tried a
couple of the split family of functions but they need character input
here is the data:
date.time <- c(19851001001500, 19851001003000, 19851001004500, 198510
4 matches
Mail list logo