Читать книгу The Big R-Book - Philippe J. S. De Brouwer - Страница 225
Note
ОглавлениеFields can also be supplied as a vector (we use a list in the example). Using a vector does not allow to specify a type. It looks as follows:
setRefClass(“account”, fields = c(“ref_number”, “holder”, “branch”, “opening_date”, “account_type” ) )