Read SAS files in the sas7bdat data format.
read.sas7bdat(file, encoding="", debug=FALSE)
A data frame corresponding to the SAS database. The returned data frame has an column.info
attribute and other attributes that contain additional information about each field in the data frame, respectively. The column.info
attribute is a list of lists, containing each of the following:
The field name
The field offset in packed binary row data (bytes)
The field length (bytes)
The field type, either 'character' or 'numeric'
When the database specifies a field format and/or label, the following may also be present:
The field display format
The field label (usually a longer description)
character: Path to a file or an URL.
character: Character encoding for strings
logical: Save function environment as attribute of returned object.
The functionality in this package is EXPERIMENTAL. Use at your own risk. For the latest details, see the ‘sas7bdat’ vignette (i.e., vignette('sas7bdat')
).
Matt Shotwell
http://biostatmatt.com/archives/tag/sas7bdat
## see \code{data(sas7bdat.sources)}
Run the code above in your browser using DataLab