ps_separate_datetime | R Documentation |
Separates DateTime into Year, Month and Day.
ps_separate_datetime( data, col = "DateTime", into = c("Year", "Month", "Day", "Hour", "Minute", "Second"), remove = TRUE )
data |
A data frame. |
col |
A column name or position. |
into |
A character vector of length 6 specifying the names for the year, month, day, hour, minute and second components. |
remove |
A flag specifying whether to remove the original column. |
data <- data.frame(DateTime = Sys.time()) ps_separate_datetime(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.