char2number: Converts a string to a number by character substitution

Usage Arguments

Usage

1
2
char2number(init.string, chars.list = "NULL", num.list = "NULL",
  mod.machine.int = FALSE)

Arguments

init.string

character string to be converted

chars.list

list of characters to be replaced. Default is c('a',...,'z','A',...,'Z')

num.list

list of numbers to replace characters in chars.list. Default is seq(from = 1, to = 52, by = 1)

mod.machine.int

bool to return the full number (default = FALSE) or the full number modulus the integer range of the machine (set to TRUE).

a string containing a number. Need to use as.numeric() Currently only supports a-zA-z and removes spaces char2number('a') char2number("Hello World")


bmarkslash7/bagoftricks documentation built on May 12, 2019, 10:24 p.m.