search for: foostack

Displaying 1 result from an estimated 1 matches for "foostack".

2008 Jan 03
2
Suggestion on how to make permanent changes to a single object in a list?
specifically, imagine we have: fooStack <- list() for ( i in 1:5 ) fooStack[[i]] <- list() and we have a function: fooModifier <- function( foo ) { foo$bar <- "bar" } then, if we invoke fooModifier, i.e.: fooModifier( fooStack[[ 1 ]] ) the $bar elt is only set in the...