Description Usage Arguments Value See Also Examples
View source: R/cleanup-datetime.r
Cleans up date from data frame
1 2 | cleanup_date(data, prefix = "", suffix = "", expand = c("Year", "Month",
"Day"))
|
data |
data.frame with columns of [prefix]expand[suffix], [prefix]expand[suffix] values etc |
prefix |
string |
suffix |
string |
expand |
character vector of column names where [prefix]expand[suffix] and expand must only be Year, Month, Day |
Cleaned up data
1 2 | data <- data.frame(Year = 2000, Month = 1:4, Day = 2, Comments = 'No way')
cleanup_date(data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.