-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspss_varlist.Rd
60 lines (56 loc) · 2.33 KB
/
spss_varlist.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spss_varlist.r
\name{spss_varlist}
\alias{spss_varlist}
\title{spss_varlist
Funció que captura la meta-informació d'un fitxer d'SPSS (nom de les variables, etiquetes, formats, ...)}
\usage{
spss_varlist(file)
}
\arguments{
\item{files}{fitxer SPSS .sav}
}
\value{
Returns an R data.frame object with a row for each variable, columns in this
frame are:
\itemize{
\item varname Variable Name, 8-char upper case.
\item varlabel Variable label, up to 40 char in length.
\item printfmt Spss PRINT FORMAT mnemonic (A40, F8.2, DATE11, etc).
\item nmiss An integer value indicating how many missing values
are defined, 0, 1, 2, or 3. Can also take values -2 or
-3 indicating that Missing Value 1 and Missing Value 2
represent a range.
\item missing1 First missing value (or NA).
\item missing2 Second missing value (or NA).
\item missing3 Third missing value (or NA).
\item longname Long variable name (SPSS version >= 12)
}
}
\description{
spss_varlist
Funció que captura la meta-informació d'un fitxer d'SPSS (nom de les variables, etiquetes, formats, ...)
}
\details{
spss_varlist(FILE) -- extract info about variables from header of
FILE, an SPSS for Windows data file (.sav)
Based on the Perl script 'spssread.pl' :
"spssread.pl - a utility to print info about SPSS data files
version 0.2.1 on 16 Jun 2005 by Scott Czepiel <sczepiel@gmail.com>
for updates see: <http://czep.net/data/spssread/>"
Format code mnemonics, and Record Type layout information, obtained from
a document (presumably authored by SPSS Inc.) made available
at <http://www.wotsit.org>, a site containing file format
information on hundreds of different file types.
Adapted for use in R by Dave Macfarlane and Isaac Subirana.
April 2006.
(dave@imim.es, isubirana@imim.es)
}
\note{
A partir de la versi? 12.0 (inclosa) apareix en l'arxiu els longnames: tants com variables hi ha i que no tenen perqu? coincidir amb els varnames.
per a versions anteriors cal ignorar aquesta informaci? (que apareix al final de l'arxiu) ja que pot ser que no es corresponguin
els longnames amb els varnames ni en n?mero (aix? passa quan inicialment s'ha creat un arxiu .sav amb una versio >=12 i posteriorment
}
\author{
Dave McFarlane, Isaac Subirana
}