I am trying to import data from a SAS XPORT file that contains 24 SAS files. When I use the "read.xport" procedure only about 16 data frames (components) are created. Any suggestions? ************************************************************************* Gary A. Nelson, Ph.D Massachusetts Division of Marine Fisheries 30 Emerson Avenue Gloucester, MA 01930 Phone: (978) 282-0308 x114 Fax: (617) 727-3337 Email: Gary.Nelson@state.ma.us [[alternative HTML version deleted]]
How about avoiding SAS XPORT altogether and exporting everything in the simple, clean, non-proprietary, extremely reliable, platform-independent ... etc text format (CSV, tab delimited etc)?> -----Original Message----- > From: Nelson, Gary (FWE) [mailto:Gary.Nelson at state.ma.us] > Sent: Thursday, July 14, 2005 10:31 AM > To: r-help at stat.math.ethz.ch > Subject: [R] read.xport > > > I am trying to import data from a SAS XPORT file that > contains 24 SAS files. > When I use the "read.xport" procedure only about 16 data > frames (components) > are created. Any suggestions? > > > > > > ************************************************************** > *********** > > Gary A. Nelson, Ph.D > > Massachusetts Division of Marine Fisheries > > 30 Emerson Avenue > > Gloucester, MA 01930 > > Phone: (978) 282-0308 x114 > > Fax: (617) 727-3337 > > Email: Gary.Nelson at state.ma.us > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html >
I have the latest version of foreign, but it still doesn't work. I quickly tried the Hmisc package, but the same issue arose. I will delve into the Hmisc package further. Thanks. -----Original Message----- From: Frank E Harrell Jr [mailto:f.harrell at vanderbilt.edu] Sent: Thursday, July 14, 2005 11:46 AM To: bogdan romocea Cc: Nelson, Gary (FWE); R-help at stat.math.ethz.ch Subject: Re: [R] read.xport bogdan romocea wrote:> How about avoiding SAS XPORT altogether and exporting everything in > the simple, clean, non-proprietary, extremely reliable, > platform-independent ... etc text format (CSV, tab delimited etc)?I hope the problem is fixed in the latest version of foreign (no version info was given). In case it's not, you may want to look at the sasxport.get function in the Hmisc package. Frank> > > >>-----Original Message----- >>From: Nelson, Gary (FWE) [mailto:Gary.Nelson at state.ma.us] >>Sent: Thursday, July 14, 2005 10:31 AM >>To: r-help at stat.math.ethz.ch >>Subject: [R] read.xport >> >> >>I am trying to import data from a SAS XPORT file that >>contains 24 SAS files. >>When I use the "read.xport" procedure only about 16 data >>frames (components) >>are created. Any suggestions? >> >> >> >> >> >>************************************************************** >>*********** >> >>Gary A. Nelson, Ph.D >> >>Massachusetts Division of Marine Fisheries >> >>30 Emerson Avenue >> >>Gloucester, MA 01930 >> >>Phone: (978) 282-0308 x114 >> >>Fax: (617) 727-3337 >> >>Email: Gary.Nelson at state.ma.us >> >> >> >> >> [[alternative HTML version deleted]] >> >>______________________________________________ >>R-help at stat.math.ethz.ch mailing list >>https://stat.ethz.ch/mailman/listinfo/r-help >>PLEASE do read the posting guide! >>http://www.R-project.org/posting-guide.html >> > > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html >-- Frank E Harrell Jr Professor and Chair School of Medicine Department of Biostatistics Vanderbilt University
Sorry about the version. I have version 0.8-8 of foreign. I downloaded (and installed) it this afternoon. The XPORT files were created in SAS using PROC COPY. I used the code: temp<-read.xport("c:/temp/int82ag.xpt"). I still get only 16 file of the 24 SAS placed into the XPORT file. The XPORT files come from ftp://cusk.nmfs.noaa.gov/mrfss/intercept/ag/ if anyone wants to try it. I used the .xpt in "int82ag.zip" and it appears they were created using SASV5XPT. -----Original Message----- From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] Sent: Thursday, July 14, 2005 2:01 PM To: Nelson, Gary (FWE) Cc: r-help at stat.math.ethz.ch Subject: Re: [R] read.xport On Thu, 14 Jul 2005, Nelson, Gary (FWE) wrote:> I have the latest version of foreign, but it still doesn't work. IAre you sure: a new version was released a few hours ago? It may not answer your question, but please do give actual version numbers (as the posting guide asks). -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595