Hi Gregory, Tim,
I am not sure whether this is a bug, feature or my error, but I created
the data frame Data and used write.xport function of the SASxport
package as follows:
write.xport(Data,file="C:/Data/Data.xpt")
When I open the resulting file using the SAS Viewer 9 (or when I read it
back to R using read.xport) I see that all negative values were saved
incorrectly.
Since these files are needed for regulatory submission, it looks
dangerous, so if anybody already used the package, check whether
write.xport - read.xport combination returns the original data.
Leonid
--------------------------------------
Leonid Gibiansky, Ph.D.
President, QuantPharm LLC
web: www.quantpharm.com
e-mail: LGibiansky at quantpharm.com
tel: (301) 767 5566
Tim Bergsma wrote:
Metrum Institute and Random Technologies LLC are pleased to announce the
availability of the SASxport package for the R programming language.
Development of SASxport was motivated by a desire to interconvert R and
SAS TRANSPORT (‘xport’) formats for NMTRAN data sets. In particular, the
ability to write ‘xport’ files from within R helps achieve consistency
with regulatory guidelines on electronic submissions.
The new SASxport package provides the ability to directly read, list,
and write SAS ‘xport’ files, including proper handling of custom SAS
formats. (This extends existing functionality for reading and listing
SAS transport files provided by the foreign package.)
The SASxport package is freely available from CRAN:
http://cran.r-project.org/src/contrib/Descriptions/SASxport.html.
Additional distribution options and technical support are available from
Random Technologies, LLC:
http://random-technologies-llc.com/products/SASxport.
For more information, please visit the web site or contact:
* USA & Canada Toll Free: (877) 813-3266
* Outside the USA & Canada: (585) 419-6853
* Email: <[EMAIL PROTECTED]>
Funding for this project was provided by Metrum Institute
(http://www.metruminstitute.org).
Regards,
Gregory R. Warnes, Ph.D
Chief Scientist
Random Technologies LLC
http://random-technologies-llc.com
Timothy Bergsma, Ph.D.
Research Scientist
Metrum Institute
http://www.metruminstitute.org