transform_restrict_age: Filter a variable by age

View source: R/transform_subset.R

transform_restrict_ageR Documentation

Filter a variable by age

Description

'transform_restrict_age()' recodes the indicated variable to NA when age is outside the boundaries. Cases where age is NA are also recoded to NA. To remove rows outside of age boundaries use 'transform_filter_age()' instead.

Usage

transform_restrict_age(lissy_files, variable, from, to)

Arguments

lissy_files

A list of LIS or LWS files.

variable

A character string with the name of the variable that should be adjusted.

Details

\lifecycle

experimental

Value

A list of tibbles with the adjusted variable.


JosepER/lissyrtools documentation built on Jan. 26, 2025, 10:01 p.m.