Learn R Programming

jwutil (version 1.2.3)

get_numeric_char_field_names: Find columns which are numeric

Description

Get field names, or the data itself, of fields in a data frame which are numeric, or numeric-like characters.

Usage

get_numeric_char_field_names(x, invert = FALSE, attrition = 0.05)

get_numeric_field_names(x, invert = FALSE)

get_numeric_fields(x, invert = FALSE)

Arguments

x

Data frame

invert

Logical, if FALSE -- the default -- the numeric fields are returned, otherwise, non-numeric fields are returned.

attrition

If less than this proportion of rows become NA on conversion to numeric, then accept this is a numeric column after all.