Here are two ways of doing it with POSIXct and one with chron.
Read RNews 4/1, ?read.zoo and the three zoo vignettes:
Lines <- '"Data","MAX","MIN","Note"
"07-01-2008 08:00:00", 135, 90, "Eccessi feste, inizio dieta"
"07-01-2008 18:00:00", 135, 85, ""
"08-01-2008 08:00:00", 125, 75, ""
'
library(zo
You need to convert to POSIXct since POSIXlt is a vector of size 9.
So do the following:
miedate <- as.POSIXct(strptime(as.character(pressione[,1]),
format="%d-%m-%Y %H:%M:%S"))
There is a newsletter (I forget the issue) that you might want to
refer to on using 'dates'.
On 2/21/08, vittorio <
In the text file pressione2008.csv I have the following
"Data","MAX","MIN","Note"
"07-01-2008 08:00:00", 135, 90, "Eccessi feste, inizio dieta"
"07-01-2008 18:00:00", 135, 85, ""
"08-01-2008 08:00:00", 125, 75, ""
which is a collection of blood pressure data at different time of the day.
I woul
3 matches
Mail list logo