12/28/2022 0 Comments R read stata 13SPSS Data Entry is an application for creating data entry forms. SPSS variables with value labels are optionally converted to R factors. It returns a list with one component for each variable in the saved data set. For S-PLUS 5.x and later you may need to use dump(…, oldStyle=T), and to read in very large objects it may be preferable to use the dump file as a batch script rather than use the source function.įunction read.spss can read files created by the ‘save’ and ‘export’ commands in SPSS. If you have access to S-PLUS, it is usually more reliable to dump the object(s) in S-PLUS and source the dump file in R. It should be possible to read data dumps from S-PLUS 5.x and later written with data.dump(oldStyle=T). This is able to read many but not all S objects: in particular it can read vectors, matrices and data frames and lists containing those.įunction data.restore reads S-PLUS data dumps (created by data.dump) with the same restrictions (except that dumps from the Alpha platform can also be read). (Package Hmisc has a similar function sas.get, also running SAS.) For those without access to SAS but running on Windows, the SAS System Viewer (a zero-cost download) can be used to open SAS datasets and export them to e.g.csv format.įunction read.S which can read binary objects produced by S-PLUS 3.x, 4.x or 2000 on (32-bit) Unix or Windows (and can read them on a different OS). It then calls read.xport to read the resulting file. If SAS is available on your system, function read.ssd can be used to create and run a SAS script that saves a SAS permanent dataset (.ssd or. This returns the components of the worksheet as an R list.įunction read.xport reads a file in SAS Transport (XPORT) format and return a list of data frames. EpiData also produces data in this format.įunction read.mtp imports a ‘Minitab Portable Worksheet’. write.foreign (See Export to text files) provides an export mechanism with support currently for SAS, SPSS and Stata.ĮpiInfo versions 5 and 6 stored data in a self-describing fixed-width text format. In some cases these functions may require substantially less memory than read.table would. The recommended package foreign provides import facilities for files produced by these statistical systems, and for export to Stata. In all cases the facilities described were written for data files from specific versions of the other system (often in the early 2000s), and have not necessarily been updated for the most recent versions of the other system.ģ.1 EpiInfo, Minitab, S-PLUS, SAS, SPSS, Stata, Systat This is often best avoided, but may be unavoidable if the originating system is not available. In this chapter we consider the problem of reading a binary data file written by another statistical system. Chapter 3 Importing from other statistical systems
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |