is_numeric: Check if a variable is Numeric

View source: R/mccrr.R

is_numericR Documentation

Check if a variable is Numeric

Description

Sometimes you have an unknown number of variables being piped into a function that only takes numeric vectors. This function exists to select only those which will work in the final function.

Usage

is_numeric(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.