Description Usage Arguments Details Value Author(s) Examples
Convert sas7bdat files to CSV format with Parso library by GGASoftware.
1 | s7b2csv(s7bfile, csvfile)
|
s7bfile |
string; sas7bdat filename |
csvfile |
string; CSV filename |
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.
Returns csvfile
on success.
Matt Shotwell
1 | #s7b2csv("sdrug.sas7bdat", "sdrug.csv")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.