Tazinho / Advanced-R-Solutions

Set of solutions for the Advanced R programming book
https://advanced-r-solutions.rbind.io/
290 stars 118 forks source link

Solve Conditions 4.3 #262

Closed Tazinho closed 3 years ago

Tazinho commented 3 years ago

Conditions 4.3 How would you modify the catch_cnds() defined if you wanted to recreate the original intermingling ...

hadley commented 3 years ago

Hmmm, I guess I must've written catch_cnds() after I wrote that question? It certainly seems like catch_cnds() already preserves the order.

Tazinho commented 3 years ago

Yes, I also think that it wasn't there before. I modified this a bit to explain the small inconsistency and think it's fine now.