Learn R Programming

icd (version 3.3)

sas_parse_assignments: Get assignments from a character string strings

Description

The format of assignments is best seen in the SAS source files.

Usage

sas_parse_assignments(x, strip_whitespace = TRUE, strip_quotes = TRUE)

Arguments

x

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

strip_whitespace

will strip all white space from the returned values

strip_quotes

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