search for: datetime1

Displaying 2 results from an estimated 2 matches for "datetime1".

Did you mean: datetime
2012 May 27
3
Problem with strptime
...see final line below). Both data1 and data2 are in exactly the same original format, the only difference is that they span different dates. Please help, since it is driving me nuts! Many thanks. Best wishes, Des - > data1=read.table("data1.txt",header=T,sep="\t") > datetime1=strptime(data1$Date, "%a %b %d %H:%M:%S %Y") #example line from data1 ''Tue Aug 16 03:00:01 2011'' > summary(datetime1) Min. 1st Qu. Median Mean "2011-08-15 21:00:01 BST" "2011-10-08 01:00:01...
2012 Jul 17
3
NA instead of time stamp
I was wondering why I get <NA> instead of the timestamp in the following. Thanks. > dataDir <- file.path(wd) > localRaw <- read.csv(file.path(dataDir,"LOCAL.csv"), as.is=T,stringsAsFactors = FALSE) > localRaw[1:2,] Year Month Day hour minute second Temp1mab Temp7mab Temp14mab Salinity1mab 1 2009 10 5 0 0 0 11.288 13.675 13.743 33.513