daaallstar.blogg.se

Spss sav file format
Spss sav file format











spss sav file format

The "accidents.sav" is an example data file that ships with IBM SPSS Statistics versions 19.0 thru 26.0. 'help.start()' for an HTML browser interface to help. Type 'demo()' for some demos, 'help()' for on-line help, or

spss sav file format

'citation()' on how to cite R or R packages in publications.

spss sav file format

Type 'contributors()' for more information and R is a collaborative project with many contributors. Natural language support but running in an English locale Type 'license()' or 'licence()' for distribution details. You are welcome to redistribute it under certain conditions. R is free software and comes with ABSOLUTELY NO WARRANTY. R version 3.6.1 () - "Action of the Toes"Ĭopyright (C) 2019 The R Foundation for Statistical Computing Your first set of code worked for me on macOS 10.15.1 (Catalina) and R 3.6.1 with memisc_0.99.17.2 and foreign_0.8-71. This is the code I've tried: require(foreign)ĭataDir <- "my_directory_on_the_server_containing_the_file"ĭat <- read.spss(fn, to.ame = TRUE)ĭat <- as.t(fn, to.ame = TRUE)ĭoes anybody have an idea why this wouldn't work? I'm suspecting it's a problem of which version of R and the packages to use.? The file is stored on a server, my R is installed in a user on the local drive. I have no way of checking what version that was though.Ĭurrently, I'm working in R version 3.4.4 (15) on windows 10, and use packages memisc_0.99.17.2 and foreign_0.8-71. Reading this file in and storing it as a feather file (.fea format) already has worked on another computer - that might have had another version of R installed. Sadly, I can't give you a subset of my data (severe restrictions on privacy and I don't have a SPSS license). The factors vary: Many are categorical "Yes" / "No" / "Missing" / "None", some are numerical (IDS etc), some are labelled with texts ("State One" / "State 2" / "State 3") and some are mixed ("1" / "20" / "3732" / "Technical Problem"). The file is a very long SPSS file containing over 2 million entries and hundreds of factors. Trying the memsicpackage and its as.t(("my_file")) raises:Įrror in spss.readheader(file) : not a sysfile Trying to read a SPSS file (.sav format) in R raises:Įrror: file is not in any supported SPSS format.













Spss sav file format