Re: [Rcpp-devel] Working with lists of objects

2012-01-30 Thread Dirk Eddelbuettel
On 30 January 2012 at 14:31, Chris DuBois wrote: | Hi all, | | I'm looking for better ways of dealing with lists of objects.  If I have a | list s, I want to be able to so an operation like: | s["hello"][3,3] <- 100 | where I replace the (3,3) element with 100.  Below I show the way I've done | t

[Rcpp-devel] Working with lists of objects

2012-01-30 Thread Chris DuBois
Hi all, I'm looking for better ways of dealing with lists of objects. If I have a list s, I want to be able to so an operation like: s["hello"][3,3] <- 100 where I replace the (3,3) element with 100. Below I show the way I've done this so far, but for large lists I don't want to have to manually