Skip to contents

This function checks if a variable is numeric, or could be considered one. For example, dates and times can be treated as numeric, so return TRUE.

Usage

is_num(x)

Arguments

x

the variable to check

Value

logical, TRUE if the variable is numeric

Author

Tom Elliott