I made quantiles for 9 traits separately from a datafile rr , ex.
q1 <- quantile(rr$PHemmean,prob=seq(0,1,by=0.2))
q2 <- quantile(rr$ELemmean,prob=seq(0,1,by=0.2))
how to subgroup individuals in those 4 subgroups from 0.0-0.25, 0.25 - 0.50, 0.5-0.75., may be by which and </<=
function to form a dataframe with columns ex.(PHemmeanQ
) including all quantiles, it may look like this:
PHemmeanQ.... ELemmeanQ
1
4
5
2