s7b2csv: Convert sas7bdat files to CSV format with Parso

Description Usage Arguments Details Value Author(s) Examples

View source: R/s7b2csv.R

Description

Convert sas7bdat files to CSV format with Parso library by GGASoftware.

Usage

1
  s7b2csv(s7bfile, csvfile)

Arguments

s7bfile

string; sas7bdat filename

csvfile

string; CSV filename

Details

This function uses the rJava package to interface with the GGASoftware Parso library. The Parso library builds on the sas7bdat file format documentation and code provided by the sas7bdat package. The Parso library is licensed according to the GPLv3. A copy of the GPLv3 is provided in the inst/doc directory. The Parso library depends on the SLF4J library by the software company QOS.ch. The SLF4J library is subject to the terms of the MIT license. A copy of the MIT license is provided in the inst/doc directory. The function implementation in rather inefficient, since each row of the sas7bdat database is read separately and written to a temporary CSV file. Once all rows are read, the temporary CSV file is read using the read.csv function. The code could be made more efficient by reading all of the rows at once. This is possible with the Parso library. However, there must be sufficient memory to store the full dataset.

Value

Returns csvfile on success.

Author(s)

Matt Shotwell

Examples

1
  #s7b2csv("sdrug.sas7bdat", "sdrug.csv") 

BioStatMatt/sas7bdat.parso documentation built on May 5, 2019, 4:46 p.m.