Spss portable file

broken image
broken image

Similarly, the command codebook(ds) displays the frequency tables of all variables. Numerical values corresponding to value labels can be checked with the command codebook(ds$$q1), which displays the frequencies of variable q1.

broken image

The type of individual variables in the data is item, which contains both the values and value labels of a variable. This command creates an object ds, whose type is data set. Īfter loading memisc, SPSS Portable file can be opened by entering the command ds <- as.t(('D:/data.por')). If desired, the installation directory can also be manually chosen by invoking the command install.packages('memisc', lib='D:/R_lib') ,Īnd loaded for use with the command library('memisc', lib.loc='D:/R_lib'). In order to open portable files (*.por), you need an R package memisc, which can be installed, for instance, from the RGui menu Packages → Install Package(s) or by entering the following command on the command line of R:Īfter installation, the package is loaded into the R session by using the command library('memisc'). 'D:/R_lib') may need to be changed to match the setup on your computer.

broken image

This guide describes how a quantitative data file downloaded from FSD’s Aila Data Service is opened in R. (Opens in a new tab) is a free software environment designed for statistical computing and graphics.

broken image