extract quoted or unquoted SAS string definitions

Share:

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 assignements, but probably easy to adapter to numbers if ever needed.

Usage

1

Arguments

x

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.