r - Call default constructor of a S4 by class name -


are there more ways call function name below via do.call?

setclass(class = "myclass",          representation = representation(name = "character",                                          type = "character"          ) ) myclass <- function(...) new("myclass",...) cc<-"myclass" do.call(cc,list()) 

another way:

cstor <- get(cc) cstor() 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -