Import Data from SPSS
The easiest way to import data from SPSS is to:
library(Hmisc) WorkingData = spss.get("Pathway/Filename.por", use.value.labels=TRUE) EXAMPLE: > library(Hmisc) > WorkingData = spss.get("c:/MyDocuments/SampleData.por", use.value.labels=TRUE) IMPORTANT NOTE: R recognizes backslash (\) as an escape character. Therefore, all backslashes in a pathway must be changed to forward slashes (/) to be properly read by R. |