gen_taxonomy: gen_taxonomy Function

Description Usage Arguments Examples

View source: R/gen_taxonomy.R

Description

This function allows you quickly classify people into generations based on their birthdate

Usage

1
2
3
4
5
gen_taxonomy(
  df,
  birthdate_colname = "birthdate",
  output_colname = "generacion"
)

Arguments

df

a data frame.

output_colname

string with the name which will contain the classification.

birthdate

string with the name of the df column that contains the birthdates.

Examples

1
2
3
gen_taxonomy(base_personas)
gen_taxonomy(base_personas, fecha_nacimiento,
generation)

matifuentes2/PArankmi documentation built on Jan. 15, 2021, 11:40 p.m.