Description Usage Arguments Value Examples
time_transfer
is for transfering time variables to time format.
1 | time_transfer(dat, date_cols = NULL, ex_cols = NULL, note = FALSE)
|
dat |
A data frame |
date_cols |
Names of time variable or regular expressions for finding time variables. Default is "DATE$|time$|date$|timestamp$|stamp$". |
ex_cols |
Names of excluded variables. Regular expressions can also be used to match variable names. Default is NULL. |
note |
Logical, outputs info. Default is TRUE. |
A data.frame with transfermed time variables.
1 2 3 4 5 6 7 | #transfer a variable.
dat = time_transfer(dat = lendingclub,date_cols = "issue_d")
class(dat[,"issue_d"])
#transfer a group of variables with similar name.
#transfer all time variables.
dat = time_transfer(dat = lendingclub[1:3],date_cols = "_d$")
class(dat[,"issue_d"])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.