rstats-wtf / wtf-2019-rsc

What They Forgot to Teach You About R, 2019 January 15/16 @ rstudio::conf
https://rstd.io/wtf-2019-rsc
41 stars 76 forks source link

Nested iteration/looping #5

Open DSHerzberg opened 5 years ago

DSHerzberg commented 5 years ago

You have a set of tests: A, B, C, D Each test has subscales: X, Y, Z At each level of test, you want to score all subscales, so A: X, Y, Z B: X, Y, Z . . . and so on Jenny suggested that instead of thinking of this as an iteration problem, it's best to wrangle the data so that the two columns test, subscale are unnested into a single column

jennybc commented 5 years ago

I'll ponder if this can be worked into the purrr session, but it would probably going zero to sixty too fast. Thinking on it.