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
)
The dataframe with date column filled
a data frame containing a Date or POSIXt column
the name of the column containing date or POSIXt entry to be processed
logical do you want a column describing year to be added to the dataframe
logical, add column with month
logical, add column with 15 days
logical, add column with weeks
logical, add column with standard weeks (using isoweek from lubridate)
logical, add column with day of year
logical, add column with day of month
logical, add column with hour
Cedric Briand cedric.briand@eptb-vilaine.fr