Displaying 1 result from an estimated 1 matches for "ch1avg".
Did you mean:
cavg
2010 Jul 26
1
search and replace in a list of strings
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 numbers for plotting :
- Transform "07.07.2010" in 07*24 + 07*31*24 for example
- Transform the string of type "12:15:20" in a number equals to 12+15/60+20/3600
I would...