is_extant: Check if a variable has data extant

View source: R/mccrr.R

is_extantR Documentation

Check if a variable has data extant

Description

Sometimes for longitudinal data, variables exist but have not been entered yet. To ensure forward compatibility, this function checks to see if any data have yet been entered for a given variable.

Usage

is_extant(x)

Arguments

x

a data vector

Details

works best with "select_if()" as in: data

Value

a logical: TRUE or FALSE


McCartneyAC/mccrr documentation built on March 24, 2024, 5:12 p.m.