Displaying 2 results from an estimated 2 matches for "expos01".
Did you mean:
expos02
2005 May 31
1
apply the function "factor" to multiple columns
I have a case where I would like to change multiple columns containing
numbers to factors. I can change each column one at a time as in:
TEMP.FACT$EXPOS01<-factor(TEMP.FACT$EXPOS01,levels=c(1,2,3),labels=c("No
ne","Low Impact","MedHigh Imp"))
TEMP.FACT$EXPOS02<-factor(TEMP.FACT$EXPOS02,levels=c(1,2,3),labels=c("No
ne","Low Impact","MedHigh Imp"))
TEMP.FACT$EXPOS03<-factor(TEMP.FAC...
2005 May 26
2
read.spss in R 2.1.0 & make basic dataframe
Recent changes to read.spss() in the foreign package return a dataframe
containing additional attributes. For example,
>TEMP<-read.spss(choose.files(), to.data.frame=T,use.value.labels=F)
> str(TEMP)
`data.frame': 780 obs. of 8 variables:
$ EXPOS01: atomic 1 1 2 1 2 3 2 4 2 1 ...
..- attr(*, "value.labels")= Named num 5 4 3 2 1
.. ..- attr(*, "names")= chr "Yes, experienced it with Extreme
Impact" "Yes, experienced it with Moderate Impact" "Yes, experienced it
with A Little Impact" &q...