Question:
I have the following data frame:I tried this but didn’t work:
Answer:
As Darren Tsai points out in the comments, one just needs to include the pos variable – using the nesting is not necessary.
If you have better answer, please add a comment about this, thank you!