pr_detect_months: Detect french months

Description Usage Arguments Value Examples

View source: R/pr_detect_calendar.R

Description

Detect the name of the months (in French)

Usage

1

Arguments

df

a dataframe

col

the column containing the text

Value

a tibble with the number of days detected by the algo

Examples

1
2
3
a <- data.frame(month = c("C'est lundi 1er mars et mardi 2", 
"Et mercredi 3", "Il est revenu en juin."))
pr_detect_months(a, month)

Example output

# A tibble: 3 x 3
  month                           months    n_months
* <fct>                           <list>       <int>
1 C'est lundi 1er mars et mardi 2 <chr [1]>        1
2 Et mercredi 3                   <chr [0]>        0
3 Il est revenu en juin.          <chr [1]>        1

proustr documentation built on May 2, 2019, 5:08 a.m.