fun_date_extraction {stacomiR} | R Documentation |
This function extracts temporal characteristics from a dataframe
fun_date_extraction(data, nom_coldt, annee = TRUE, mois = TRUE, quinzaine = FALSE, semaine = TRUE, semaine_std = FALSE, jour_an = FALSE, jour_mois = TRUE, heure = FALSE)
data |
a data frame containing a Date or POSIXt column |
nom_coldt |
the name of the column containing date or POSIXt entry to be processed |
annee |
logical do you want a column describing year to be added to the dataframe |
mois |
logical, add column with month |
quinzaine |
logical, add column with 15 days |
semaine |
logical, add column with weeks |
semaine_std |
logical, add column with standard weeks (using isoweek from lubridate) |
jour_an |
logical, add column with day of year |
jour_mois |
logical, add column with day of month |
heure |
logical, add column with hour |
data The dataframe with date column filled
Cedric Briand cedric.briand"at"eptb-vilaine.fr