Quantcast
Channel: Recursively editing a list in R - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Matthew Plourde for Recursively editing a list in R

R does something like pass-by-value, so you can't modify (most) existing objects just by passing them into a function. If you want to add on to something recursively, one trick would be to use an...

View Article



Recursively editing a list in R

In my program, I am recursively going over a nested list and adding elements to an overall list that I will return. There are a few details to be taken care of, so I can't just use unlist.formulaPart...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images