columnToDate | R Documentation |
Convert Column in Data Frame To Date
columnToDate(df, column, dbg = TRUE)
df |
data frame |
column |
name of column in |
dbg |
if |
df
with column
converted to class Date
with
as.Date
df <- data.frame(id = 1:2, date = c("2018-10-23", "2018-10-23"))
str(df)
df <- columnToDate(df, "date")
str(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.