Re: [R] R6 object that is a list of referenced object
Hi Cristina, You can try this: > Community <- R6Class("Community", public = list( e = NULL, initialize = function() { self$e <- list() }, add = function( person ) { self$e[[ length(self$e) + 1]] <<- p
Re: [R] R6 object that is a list of referenced object
See below. On Wed, 15 Nov 2017, Cristina Pascual wrote: Dear community, I am having a class, let's say Person, Person <- R6Class("Person", public = list( idPerson = NULL, name = NULL, age = NULL,