readData: Read a data file, figuring out if it is a SAS file or...

Description Usage Arguments Details

View source: R/autoHelpers.R

Description

Read a data file, figuring out if it is a SAS file or something else

Usage

1

Arguments

file

The name, including the full path, of the data file

type

The type, as indicated by the file extension. At present, must be either 'sas7bdat', 'csv' or NULL (the default). If NULL, the function uses the file extension to guess.

Details

If the file appears to be a SAS file, the function uses read.sas7bdat from Matt Shotwell's sas7bdat package. Currently, compressed SAS data files are not supported (but see Shotwell's sas7bdat.parso package).


harrysouthworth/margarita documentation built on Aug. 19, 2021, 5 a.m.