umx_is_numeric: Check if variables in a dataframe are numeric

umx_is_numericR Documentation

Check if variables in a dataframe are numeric

Description

Checks across columns of a dataframe, return a vector of TRUE and FALSE, or, if all ==TRUE, a single binary (the default).

Usage

umx_is_numeric(df, all = TRUE)

Arguments

df

A dataframe to check

all

Whether to return a single all() Boolean or each column individually.

Value

  • Boolean or Boolean vector

References

See Also

  • umx_is_class()

Other Check or test: umx, umx_check_names(), umx_is_class(), umx_is_endogenous(), umx_is_exogenous(), umx_is_ordered()

Examples

umx_is_numeric(mtcars) # TRUE
umx_is_numeric(mtcars, all=FALSE) # vector of TRUE

tbates/umx documentation built on Dec. 14, 2024, 11:28 a.m.