I have a dataset and a list of labels. I simply want to apply the labels to the 
variables, all at once. The only way I was able to do it was using a loop:

    for (i in 1:length(data))  label(data[,i]) <- data.labels[i]

I'd like to find the non-loop way to do it, using apply or the like... Any help 
appreciated.
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to