Displaying 1 result from an estimated 1 matches for "myqlabel".
Did you mean:
mylabel
2006 Dec 18
1
Applying variable labels across a data frame
...,2,m,5,4,5,5
7,1,m,5,3,4,4
8,2,m,4,5,5,9")
mydata<-read.table(textConnection(mystring),
header=TRUE,sep=",",row.names="id",na.strings="9")
print(mydata)
# Create copies of q variables to use as factors
# so we can count them.
myQlevels <- c(1,2,3,4,5)
myQlabels <- c("Strongly Disagree",
"Disagree",
"Neutral",
"Agree",
"Strongly Agree")
print(myQlevels)
print(myQlabels)
# Generate two sets of var names to use.
myQnames <- paste( "q&...