search for: myqfvars

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

Did you mean: mypgvars
2006 Dec 18
1
Applying variable labels across a data frame
Hi All, I'm working on a class example that demonstrates one way to deal with factors and their labels. I create a function called myLabeler and apply it with lapply. It works on the whole data frame when I subscript it as in lapply( myQFvars[ ,myQFnames ], myLabeler ) but does not work if I leave the [] subscripts off. I would appreciate it if anyone could tell me why. The program below works up until the final two statements. Thanks, Bob # Assigning factor labels to potentially lots of vars. mystring<- ("id,workshop,gender...