Learn R Programming

icd9 (version 1.0)

sasParseAssignments: get assignments from a character string strings.

Description

#form is aaa-bbb, ccc-ddd, eee, etc. = "name" abc-def, ghi, etc. = "anothername" there is no delimiter between each assignment. '

Usage

sasParseAssignments(x, stripWhiteSpace = TRUE, stripQuotes = TRUE)

Arguments

x

is a character string containing space delimited assignments, in SAS declaration format.

stripWhiteSpace

will strip all whitespace from the returned values

stripQuotes

will strip all double quotation marks from the returned values

Value

list with each list item containing a matrix of "char ranges", "assigned value" pairs