contains_nonnumeric {cheem}R Documentation

Check if a vector contains non-numeric character

Description

Returns a logical, whether or not a vector contains any non-numeric characters. Typically used to test if row names hold non-index information.

Usage

contains_nonnumeric(x)

Arguments

x

A vector to be tested for existence of non-numeric characters.

Value

Logical, whether or not x contains any non-numeric characters.

See Also

Other cheem utility: as_logical_index(), color_scale_of(), is_discrete(), is_diverging(), linear_tform(), logistic_tform(), problem_type(), rnorm_from(), sug_basis(), sug_manip_var()

Examples

library(cheem)

contains_nonnumeric(mtcars$mpg)
contains_nonnumeric(rownames(mtcars)) ## Meaningful info to use in tooltip
contains_nonnumeric(rownames(cars)) ## Assume no meaningful info to use in tooltip

[Package cheem version 0.4.0.0 Index]