search for: myqnames

Displaying 1 result from an estimated 1 matches for "myqnames".

Did you mean: mynames
2006 Dec 18
1
Applying variable labels across a data frame
...evels <- 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", 1:4, sep="") myQFnames <- paste( "qf", 1:4, sep="") print(myQnames) #The original names. print(myQFnames) #The names for new factor variables. # Extract the q variables to a separate data frame. myQFvars <- mydata[ ,myQnames] pri...