character.coercion.culprits {DTwrappers2}R Documentation

character.coercion.culprits This function identifies which character values in a vector are preventing it from being converted to a numeric vector.

Description

character.coercion.culprits This function identifies which character values in a vector are preventing it from being converted to a numeric vector.

Usage

character.coercion.culprits(x, threshold.for.numeric = 0.5, ...)

Arguments

x

A character vector of values that should be a numeric vector but was coerced to a character due to a small number of non-numeric entries.

threshold.for.numeric

A value between 0 and 1 specifying the maximum proportion of x that does not "look" numeric. If threshold.for.numeric = 0.1, then no more than 10 percentage of the values in x can be values that do not "look" numeric.

...

Additional arguments.

Value

A character vector of values that are preventing x from being converted to numeric. Returns NA if the proportion of non-numeric values exceeds the threshold.


[Package DTwrappers2 version 0.0.3 Index]