Hi, there
I'm trying to extend customized type (for example mylist) from a base type
"list" in R, which contains all functions and prototype of R base "list".
It should support below operators as "list":

a <- list(column1=c(1:5), column2=c(6:10))
aa <- mylist(column1=c(1:5), column2=c(6:10))
a$column1
1 2 3 4 5
aa$column1
1 2 3 4 5

All other usages of "list" is expected to be supported my "mylist"

My questions is :
How could I create the "mylist" in R.
Thanks for help.

-- 

*Best RegardsDawei*

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to