Skip to contents

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.

Examples

library(cheem)

contains_nonnumeric(mtcars$mpg)
#> [1] FALSE
contains_nonnumeric(rownames(mtcars)) ## Meaningful info to use in tooltip
#> [1] TRUE
contains_nonnumeric(rownames(cars)) ## Assume no meaningful info to use in tooltip
#> [1] FALSE