It works, thanks a lot!
Cheers
-Original Message-
From: jim holtman [mailto:jholt...@gmail.com]
Sent: Monday, July 26, 2010 4:04 PM
To: Olivier Coupiac
Cc: r-help@r-project.org
Subject: Re: [R] search and replace in a list of strings
The most "usable" form is to convert it
The most "usable" form is to convert it to POSIXct since most of the
plotting routines know how to handle date/time. You could do:
myDate <- as.POSIXct(paste(WD$date, WD$time), format='%m.%d.%Y %H:%M:%S')
e.g.,
> as.POSIXct('07.07.2010 12:34:15', format='%m.%d.%Y %H:%M:%S')
[1] "2010-07-07 12:3
Hi everybody,
I have a 4*4 matrix WD of wind data of the following form:
> WD
$date
[1] "07.07.2010" "07.07.2010" "07.07.2010" "07.07.2010"
$time
[1] "00:00:00" "00:10:00" "00:20:00" "00:30:00"
$CH1Avg
[1] 3.02 3.04 2.94 2.71
I would like to transform the date and time strings in usable number
3 matches
Mail list logo