test_numeric: Test if numeric values are valid

test_numericR Documentation

Test if numeric values are valid

Description

This function converts input values into numeric format and stores any values that are not valid numbers (NA) into a list of problems.

Usage

test_numeric(to_num)

Arguments

to_num

A vector of values to be converted to numeric.

Value

A numeric vector where invalid values are converted to NA. It also updates the 'weird' environment with the invalid entries.


SrivastavaLab/bwgdata documentation built on June 10, 2025, 7:09 a.m.