I need to select the variable names from a data frame (genex) that start with "klox", "opiu", or "traj".
I wrote something like:
list_1=as.vector(names(genex)) names_1=list_1[startsWith(list_1, c("klox", "opiu", "traj") )]
However, when I see the results from names_1, I notice that only some conditions are applied.
I don't know what I'm doing wrong.
Is there any other way to solve this?}
Thanks for your time, interest, and replies.}