Learn R Programming

icd (version 3.3)

sas_extract_let_strings: Extract quoted or unquoted SAS string definitions

Description

Finds all the LET statements in some SAS code and writes them to an R list. The list item name is the SAS variable name, and each list item is a character vector of the contents. This is specifically for string assignments, but probably easy to adapter to numbers if ever needed.

Usage

sas_extract_let_strings(x)

Arguments

x

is a vector of character strings, typically taken from something like readLines(some_sas_file_path)