relabel_person_variables: Relabels WISINJ and ROLE in person

relabel_person_variablesR Documentation

Relabels WISINJ and ROLE in person

Description

This bins certain variables by recategorizing and making a new column. This is useful when working with data from an old and new database or when wanting to have fewer categories. "wisinj" bins WISINJ into "No Injury", "Injured", and "Killed".

Usage

relabel_person_variables(person_df, relabel_by = "wisinj")

Arguments

person_df

person df

relabel_by

either by "wisinj"

Value

A new column of either/all inj

Examples

## Not run: system.file("extdata", "17person.fst", package = "fst") |>
  relabel_person_date(relabel_by = "wisinj")
## End(Not run)

jacciz/wisdotcrashdatabase documentation built on June 3, 2023, 2:26 a.m.