Package 'sas7bdat'

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-11-18 06:41:54 UTC
Source: CRAN

Help Index


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:

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

Examples

data(sas7bdat.sources)