| Type: | Package |
| Title: | sas7bdat Reverse Engineering Documentation |
| Version: | 0.8 |
| Date: | 2024-08-28 |
| Maintainer: | Matt Shotwell <matt.shotwell@vanderbilt.edu> |
| Description: | Documentation and prototypes for the earliest (circa 2010) open-source effort to reverse engineer the sas7bdat file format. The package includes a prototype reader for sas7bdat files. However, newer packages may contain more robust readers for sas7bdat files. |
| Depends: | R (≥ 2.10) |
| License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
| LazyLoad: | yes |
| NeedsCompilation: | no |
| Packaged: | 2024-08-28 21:11:24 UTC; matt |
| Author: | Matt Shotwell [aut, cre], Clint Cummins [ctb] |
| Repository: | CRAN |
| Date/Publication: | 2024-08-29 02:20:02 UTC |
SAS Database Reader (experimental)
Description
Read SAS files in the sas7bdat data format.
Usage
read.sas7bdat(file, encoding="", debug=FALSE)
Arguments
file |
character: Path to a file or an URL. |
encoding |
character: Character encoding for strings |
debug |
logical: Save function environment as attribute of returned object. |
Value
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:
name |
The field name |
offset |
The field offset in packed binary row data (bytes) |
length |
The field length (bytes) |
type |
The field type, either 'character' or 'numeric' |
When the database specifies a field format and/or label, the following may also be present:
format |
The field display format |
label |
The field label (usually a longer description) |
Warning
The functionality in this package is EXPERIMENTAL. Use at your own risk. For the latest details, see the ‘sas7bdat’ vignette (i.e., vignette('sas7bdat')).
Author(s)
Matt Shotwell
References
http://biostatmatt.com/archives/tag/sas7bdat
Examples
## see \code{data(sas7bdat.sources)}
Internet SAS Database Resources
Description
These data are a collection of internet resources for SAS database files in the sas7bdat format.
Usage
data(sas7bdat.sources)
Format
A data frame with records on the following fields:
filenamecharacter, the SAS database filename
accessedPOSIXct, the date last retrieved
uncompressednumeric, file size (bytes)
gzipnumeric, gzip compressed file size (bytes)
bzip2numeric, bzip2 compressed file size (bytes)
xznumeric, xz compressed file size (bytes)
urlcharacter, the Universal Resource Locator
PKGversioncharacter, the sas7bdat package version
messagecharacter, message returned by
read.sas7bdat(if any)SASreleasecharacter, SAS release
SAShostcharacter, SAS host platform
OSversioncharacter, OS version
OSmakercharacter, OS maker
OSnamecharacter, OS name
endiannesscharacter, endianness of header fields
winunixcharacter, platform type
Examples
data(sas7bdat.sources)