convert_char_to_numeric: Convert character vectors that could be numeric, to numeric

Description Usage Arguments Value

Description

Convert character vectors that could be numeric, to numeric

Usage

1
2
convert_char_to_numeric(char = NULL, threshold = 0.8,
  ignore_dates = TRUE)

Arguments

char

character vector that looks like it's full of numbers

threshold

numeric proportion of non-numeric values in char

ignore_dates

logical should dates be returned untransformed

Value

if proportion of NAs < threshold returns numeric, else returns untransformed


jimtheflash/hlprs documentation built on May 20, 2019, 12:35 p.m.