Learn R Programming

icd9 (version 0.2.1)

allIsNumeric: check whether character vector represents all numeric values

Description

check whether all the items of input vector are numeric without throwing warning derived from Hmsic package

Usage

allIsNumeric(x, extras = c(".", "NA"))

Arguments

x
is a character vector to be tested
extras
is a vector of character strings which are counted as NA values, defaults to '.' and 'NA'

Value

  • logical