Programowanie obiektowe z S3 i R6 w R
Richie Cotton
Data Evangelist at DataCamp




library(R6) thing_factory <- R6Class( "Thing",private = list( a_field = "a value", another_field = 123 ))
a_thing <- thing_factory$new()
another_thing <- thing_factory$new()
yet_another_thing <- thing_factory$new()
R6Class()privatenew() fabrykiProgramowanie obiektowe z S3 i R6 w R