Create date column from datetime in R
问题 I am new to R and I am an avid SAS programmer and am just having a difficult time wrapping my head around R. Within a data frame I have a date time column formatted as a POSIXct with the following the column appearing as "2013-01-01 00:53:00" . I would like to create a date column using a function that extracts the date and a column to extract the hour. In an ideal world I would like to be able to extract the date, year, day, month, time and hour all within the data frame to create these