stacomiR (version 0.6.1)

fun_date_extraction: This function extracts temporal characteristics from a dataframe

Description

This function extracts temporal characteristics from a dataframe

Usage

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
)

Value

The dataframe with date column filled

Arguments

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

Author

Cedric Briand cedric.briand@eptb-vilaine.fr