convert_date | R Documentation |
Converts all columns of class POSIXct or POSIXt in a data.frame to Date class.
convert_date(xx)
xx |
A data.frame containing columns of class POSIXct or POSIXt |
data.frame with any columns of class POSIXct or POSIXt converted to Dates
Andrei Rukavina - https://github.com/arukavina
Thijn van der Heijden - avanderheijden@alixpartners.com
Zach Armentrout - zarmentrout@alixpartners.com
Qianbo Wang - qwang@alixpartners.com
James Wang - swang@alixpartners.com
z <- seq(1472562988, 1472563988, 100)
df1 <- data.frame(col1 = as.POSIXct(z, origin = "1960-01-01"))
df2 <- convert_date(df1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.