Displaying 5 results from an estimated 5 matches for "s4object".
Did you mean:
sobject
2004 Dec 28
4
Developing R classes
...write classes, using S3 ou S4 models. And it seems that S4 is the best model, so I thing I should use this one.
I´m new user of R and I´m searched on the net some information about creating new classes. I found this document:
http://www.biostat.harvard.edu/courses/individual/bio271/lectures/L11/S4Objects.pdf
If someone knows some docs about creating our own classes, could please, post its url at here ?
More one question... It seems that some documents about S can be applyed to R. How do you know if you can use this documentation using R ? I´m asking this because some stufs I was looking for I fo...
2005 May 03
4
Classes and methods
Hi R people:
I would like to learn about classes, methods, S3 and S4.
Which book would be the most helpful for this info, please: the green one
or the white(and blue) one?
Or is there something that would be even better, please?
Thanks in advance.
Sincerely,
Laura Holt
mailto: lauraholt_983 at hotmail.com
R 2.1.0 Windows.
trying to learn
2005 Nov 14
1
Tidiest way of modifying S4 classes?
...new function Plot.pedigree in the
.GlobalEnv which mostly achieved what I wanted to. However, I'm sure
that's not the tidiest way to do it. We don't have the green book,
but there's lots of interesting information I found here:
http://www.stat.auckland.ac.nz/S-Workshop/Gentleman/S4Objects
However, there's something I'm missing in connecting that information
into knowledge of how I go about making a new method or slot or
whatever is sensible in this case. What does one make of this:
> getClass(class(kinship:::plot.pedigree))
No Slots, prototype of class "functio...
2004 Jun 19
0
setGeneric / standardGeneric when args are not "literals" - corrected
...ear"
calls standardGeneric to dispatch on a different name ("funName")!
This is R-1.8.1 on RH-7.3
I came across it while trying to write a helper function that would
"safely" create generics when a function with such a name already
exists. Here is what I adapted from S4Objects but it doesn't work
because of the above-mentioned problem. Any suggestion how to make it
work, please?
setMakeGenericMethod <- function(methodName, className, fun) {
# sets a method and creates the generics if necessary
if (!isGeneric(methodName)) {
if (is.function(methodName)) {...
2006 Jan 01
4
S3 vs. S4
Dear R People:
Could someone direct me to some documentation on the
difference between S3 and S4 classes, please?
For example, why would a person use one as opposed to another?
Maybe pros and cons of each?
Thanks in advance!
R Version 2.2.0 (I'm downloading the new one this afternoon!) Windows.
Happy New Year!
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and