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