search for: krasyn

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

Did you mean: krasny
2012 Apr 23
3
Selecting columns whose names contain "mutated" except when they also contain "non" or "un"
Hello All, Started out awhile ago trying to select columns in a dataframe whose names contain some variation of the word "mutant" using code like: names(KRASyn)[grep("muta", names(KRASyn))] The idea then would be to add together the various columns using code like: KRASyn$Mutant_comb <- rowSums(KRASyn[grep("muta", names(KRASyn))]) What I discovered though, is that this selects columns like "nonmutated" and "unmutat...