rename_kin: rename kin

View source: R/aux_funs.R

rename_kinR Documentation

rename kin

Description

Add kin labels depending the sex

Usage

rename_kin(df, sex = "f")

Arguments

df

data.frame. A data frame with variable kin with DemoKin codes to be labelled.

sex

character. "f" for female, "m" for male or "2sex" for both sex naming.

Details

See table demokin_codes to know label options.

Value

Add a column with kin labels in the input data frame.


IvanWilli/DemoKin documentation built on March 1, 2025, 3:46 a.m.