2006-02-21 11:10:56 UTC
variables are of type "numeric", although some are really factors, as
specified in the "values" field. (E.g. "1.00" = patient; "2.00" = control.)
The variables that are really numeric also have some "values" specification
(e.g. "1000"= n/a).
If I read the data into S-Plus from a .sav or .por file, the factors behave
as they should, but the numerical variables end up as missing values, except
for those numerical values for which there was a "values" specification in
SPSS. I can instead go via .dat or .txt, in which case the variables are all
read as numeric, and I lose the labels attached to the factor variables.
What I want is to have the data as character vectors (or factors) where
there is an *exhaustive* list of "values" specifications in SPSS, but as
numerical variables when there isn't. There are a lot of variables, so I am
hoping to find a way of doing this that is not too labour intensive!