Re: [R] modify subset of array in list in a function

2014-01-23 Thread William Dunlap
ank_-1))) } array # (b) new return value } Bill Dunlap TIBCO Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of Tamas Papp > Sent: Thursday, January 23, 2014 3:51 AM > To: r-help@

[R] modify subset of array in list in a function

2014-01-23 Thread Tamas Papp
Hi, I am trying to implement a function that would allow functional transformations of posterior simulations (useful in posterior predictive checks after MCMC, eg in Stan). A posterior simulation is a list of vectors and arrays. Usually, one uses loops to transform it, but that's error prone. I w