simplenumber: Title Remove letters and special characters from a string to...

View source: R/format.R

simplenumberR Documentation

Title Remove letters and special characters from a string to return a numeric value

Description

Title Remove letters and special characters from a string to return a numeric value

Usage

simplenumber(x, fill = NULL)

Arguments

x

string or vector with numeric values for cleaning

fill

Value to fill empty values with. Default NULL will not fill empty values

Value

number or vector of numbers

Examples

# x <- c("dfju", "LASK3", "dfpisdu092", "9376", 3098)
# x <- simplenumber(x, fill = -1)


DHatziioanou/simpleepi documentation built on Sept. 24, 2024, 5:25 a.m.