I'm very familiar with C++. In this sense, it is easier for me to
learn R.oo according to your advice. On the other hand, S3 and S4 are
the most used. I'm wondering what would be the best choice for me. Do
you have any recommendation considering the pros and cons of both
ways?
Is it true that
I think it would be best to learn S3 first since that is a fundamental
part of R and S4 is an extension of it and also its very simple so
there is not much to learn. After that you can branch out.
On Mon, Oct 26, 2009 at 2:28 PM, Gabor Grothendieck
ggrothendi...@gmail.com wrote:
S3 and S4 are
Please what I already wrote in my previous message of this thread.
Also, everything in R.oo is based on S3 and it uses standard R
constructs and data types to achieve what it does.
You can submit packages based on R.oo, and there are several such
packages on CRAN, see 'Reverse dependencies' on
There are different way to make R classes. I know R.oo and S4. I'm
wondering which one is the current popular one. Which one is current
recommended when make new R packages? Thank you!
__
R-help@r-project.org mailing list
Peng Yu wrote:
There are different way to make R classes. I know R.oo and S4. I'm
wondering which one is the current popular one. Which one is current
recommended when make new R packages? Thank you!
It depends on who the recommender is. S4 is part of the methods package
and therefore of R's
There are two basic class method dispatching mechanisms in R: S3 and
S4. These are not R.oo.
From a *design* point of view, S3 and S4 are rather similar, or more
precisely, you can do the same things in both if you're careful. From
an implementation point of view, they are different, and the
S3 and S4 are part of the core of R so they would presumably be the
most used. S4 is an extension to S3 but adds strong typing and a
number of other features. R.oo and proto are packages on CRAN which
give access to different models of object oriented programming than S3
and S4. R.oo uses a more
7 matches
Mail list logo