Title: | sas7bdat Reverse Engineering Documentation |
---|---|
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. |
Authors: | Matt Shotwell [aut, cre], Clint Cummins [ctb] |
Maintainer: | Matt Shotwell <[email protected]> |
License: | GPL (>= 2) |
Version: | 0.8 |
Built: | 2024-12-18 06:44:02 UTC |
Source: | CRAN |
Read SAS files in the sas7bdat data format.
read.sas7bdat(file, encoding="", debug=FALSE)
read.sas7bdat(file, encoding="", debug=FALSE)
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. |
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) |
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)}
## see \code{data(sas7bdat.sources)}
These data are a collection of internet resources for SAS database files in the sas7bdat format.
data(sas7bdat.sources)
data(sas7bdat.sources)
A data frame with records on the following fields:
filename
character, the SAS database filename
accessed
POSIXct, the date last retrieved
uncompressed
numeric, file size (bytes)
gzip
numeric, gzip compressed file size (bytes)
bzip2
numeric, bzip2 compressed file size (bytes)
xz
numeric, xz compressed file size (bytes)
url
character, the Universal Resource Locator
PKGversion
character, the sas7bdat package version
message
character, message returned by read.sas7bdat
(if any)
SASrelease
character, SAS release
SAShost
character, SAS host platform
OSversion
character, OS version
OSmaker
character, OS maker
OSname
character, OS name
endianness
character, endianness of header fields
winunix
character, platform type
data(sas7bdat.sources)
data(sas7bdat.sources)