0

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
jpsmith
  • 11,023
  • 5
  • 15
  • 36
Megha
  • 1
  • 2
  • Can you provide a [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example)? – jrcalabrese Feb 24 '23 at 19:44

0 Answers0