Preserving list element class in R function return -
i have r function returns list of objects: logical variable, 2 vectors, , user-defined class, list containing several parameters data.frame. upon return function, check object of user-defined class of class using is() function. however, is() function returns value "list" rather name of user-defined class name. not possible pass class objects part of list upon return function? running rstudio 1.014, microsoft r 3.4, , windows 10.
barth
Comments
Post a Comment