Learn R Programming

icd (version 3.3)

icd9_is_n_cpp: Do elements of vector begin with V, E (or any other character)?

Description

Currently returns a vector of bool which is not thread safe, or particularly fast, although it is memory efficient in the standard implementation. As of icd9 (now known as icd) version 1.2, this is not called by threaded code, but this could change, so beware! ASCII spaces are trimmed from the start of the string before testing, but no other white space

Usage

icd9_is_n_cpp(sv)

icd9_is_v_cpp(sv)

icd9_is_e_cpp(sv)

Arguments

sv

vector of strings

x

const char* of choices of first character to match

invert

single logical, if TRUE, negates the condition