[R] Re:Importing SPSS Data Entry data files

Michael Bibo Michael_Bibo at health.qld.gov.au
Fri Apr 23 03:53:00 CEST 2004


On 16 Apr, Unung Istopo Hartanto asked about using R library 'foreign' to import SPSS Data Entry data files.  SPSS Data Entry is an application that allows for the creation of formatted data entry forms (as does EpiInfo, Epidata and CSPro (all free downloads)).  As such it creates the usual SPSS data files, but adds forms information, which the 'foreign' package does not know how to handle.
 
The solution is relatively simple: SPSS Data Entry Builder itself allows for the exporting of the data file without the forms information (File -> Export -> Data).  This gives you a 'standard' SPSS data file, which you can import into R using the 'foreign' library, or through R Commander.

Michael Bibo
Research Officer
Alcohol, Tobacco and Other Drugs Service
Resource Unit
West Moreton Community Health Services
West Moreton Health Service District
Queensland Health

Michael_Bibo at health.qld.gov.au

Ph. +61 7 3817 2474

P.O. Box 878
Ipswich,  4305
Australia



***********************************************************************************
This email, including any attachments sent with it, is confidential and for the sole use of the intended recipient(s).  This confidentiality is not waived or lost, if you receive it and you are not the intended recipient(s), or if it is transmitted/received in error.

Any unauthorised use, alteration, disclosure, distribution or review of this email is prohibited.  It may be subject to a statutory duty of confidentiality if it relates to health service matters.

If you are not the intended recipient(s), or if you have received this email in error, you are asked to immediately notify the sender by telephone or by return email.  You should also delete this email and destroy any hard copies produced.




More information about the R-help mailing list