Thanks Pat. You're doing a great service for experienced and new coders alike.
@Riffomonas3 жыл бұрын
Hey Marc - my pleasure, keep watching!
@mukhtarabdi8243 жыл бұрын
Thanks Pat, I have enjoyed with your series of using R base functions. It will be useful for us if you record another episode about nested loops in R
@Riffomonas3 жыл бұрын
My pleasure! Let me see what I can do. I have some older videos where I use map functions to replace loops. Thankfully the ability to vectorize functions like we did within this loop prevent a lot of need for nested loops
@hassanhijazi47574 ай бұрын
Hey Pat, What is the best practice when you want to populate a list but you don’t know upfront how long this might grow? What you do in this case?
@Riffomonas4 ай бұрын
You can certainly grow the list, which really isn't a problem if you don't think it will be long. Alternatively, I've also seen people initialize a list that's larger than you think it will be and then prune it after you know how big it actually should be