search for: e_reverse_list

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

Did you mean: e_reversed_list
2008 May 19
2
recoding data with loops
...iations of the following, but to no avail: reverse_list <- c("HEQUAL", "HREVDIS1", "HREVDIS2") reversed_list <- c("RHEQUAL", "RHREVDIS1", "RHREVDIS2") for(i in 1:length(reverse_list)) {mdf[ ,e_reversed_list][[i]] <- recode(mdf[ ,e_reverse_list][[i]], '5:99=NA; 1=4; 2=3; 3=2; 4=1; ', as.factor.result=FALSE) # I'm sure I have many deep misunderstandings about the R language, but # if I can get this much done, I think I'll be well on my way to understanding R # and how it works with loops and dataframes. # Thanks! [[alte...