Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

readSAS

Read a SAS b7dat Data Set


Description

readSAS reads a SAS “b7dat” data set, stored in a file of type .sas7bdat, into an R data frame; it provides a front end to the read_sas function in the haven package.

Usage

readSAS(file, rownames=FALSE, stringsAsFactors=FALSE)

Arguments

file

path to a SAS b7dat file.

rownames

if TRUE (the default is FALSE), the first column in the data set contains row names (which must be unique—i.e., no duplicates).

stringsAsFactors

if TRUE (the default is FALSE) then columns containing character data are converted to factors.

Value

a data frame

Author(s)

See Also


RcmdrMisc

R Commander Miscellaneous Functions

v2.7-1
GPL (>= 2)
Authors
John Fox [aut, cre], Robert Muenchen [ctb], Dan Putler [ctb]
Initial release
2020-08-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.