Displaying 2 results from an estimated 2 matches for "df_date".
2006 Nov 09
1
POSIXlt converted to POSIXct in as.data.frame()
...;- strptime(c("11-09-2006", "11-10-2006", "11-11-2006",
"11-12-2006", "11-13-2006"), "%m-%d-%Y")
str(my_POSIX)
my_Date <- as.Date(my_POSIX)
str(my_Date)
data <- format(my_Date)
str(data)
my_DF <- data.frame(my_POSIX)
str(my_DF)
DF_Date <- as.Date(my_DF$my_POSIX)
str(DF_Date)
DF_Date
The consequence (for my LC_TIME and machine time zone) is that when
as.Date() is applied to the data frame column, it dispatches on
as.Date.POSIXct() not as.Date.POSIXlt(), causing a day shift (actually 60
minutes, but because as.Date.POSIXct()...
2024 Jun 15
2
code for year month day hr format
I have solar-geophysical data e.g as blow:
YEAR DOY HR IMF SW SSN Dst f10.7
2012 214 0 3.4 403. 132 -9 154.6
2012 214 1 3.7 388. 132 -10 154.6
2012 214 2 3.7 383. 132 -10 154.6
2012 214 3 3.7 391. 132 -9 154.6
2012 214 4 4.2 399. 132 -7 154.6
2012 214 5 4.1 411. 132 -6 154.6
2012 214 6 4.0 407. 132 -6 154.6
2012 214 7 4.2 404. 132 -4