Re: [R] R6 object that is a list of referenced object

2017-11-16 Thread Eric Berger
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

2017-11-15 Thread Jeff Newmiller
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,

[R] R6 object that is a list of referenced object

2017-11-15 Thread Cristina Pascual
Dear community, I am having a class, let's say Person, Person <- R6Class("Person", public = list( idPerson = NULL, name = NULL, age = NULL, initialize = function(idPerson = NA, name =

[R] R6 object that is a list of referenced object

2017-11-15 Thread Cristina Pascual
Dear community, I am having a class, let's say Person, Person <- R6Class("Person", public = list( idPerson = NULL, name = NULL, age = NULL, initialize = function(idPerson = NA, name