search for: rsmethods

Displaying 8 results from an estimated 8 matches for "rsmethods".

2001 Mar 30
0
Re: [Omega-bugs] RSMethods pkg causes data.frame misbehavior in R
Right. The methods such as as.data.frame.numeric don't get dispatched, basically because RSMethods tries to interpret class(x) in the S4 sense (so, e.g. a numeric vector has class "numeric"). Problems can then come from different semantics for S3-style and S4-style methods. The older methods don't dispatch on the mode of vectors (or equivalently, on the value of data.class(x)), b...
2001 Oct 31
2
Applicability of "Programming with Data" Text
Hello, Before I consider purchasing it, can someone comment on the general applicability of John Chambers' book titled "Programming with Data" for R programming. I am currently using R-1.3.1 with the Omega SLanguage and RSMethod packages. Many thanks, Randall -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read
2005 May 23
2
Documentation of S3 and S4 classes, inheritance
..."R Language Definition." While the fact that S4 is defined in a package makes clear it is not formally part of the base language, this is not a very good way to get people to use S4. I think by now I've tracked down docs on S4, including the intro/overview at http://www.omegahat.org/RSMethods/. Finally, I'm a bit concerned that one article mentioned that S4 inheritance, in practice, is used mostly for data, not methods (Thomas Lumley, R News 4(1), June 2004: p. 36). Am I going down a road I shouldn't travel? -- Ross Boylan wk: (415) 502-...
2008 Feb 20
0
Non-standard S4 behavior
Hi all, I've been trying out the code from Chamber's "Classes and Methods in the S language": http://www.omegahat.org/RSMethods/Intro.pdf >From my session: R> whatis <- function(object) paste( "sdw" ) R> setMethod( "whatis", "vector", function(object) paste( "cswdvcr" ) ) R> dumpMethod( "whatis", "numeric" ) [1] "whatis.numeric.R" But th...
2005 May 23
1
SV: Documentation of S3 and S4 classes, inheritance
..."R Language Definition." While the fact that S4 is defined in a package makes clear it is not formally part of the base language, this is not a very good way to get people to use S4. I think by now I've tracked down docs on S4, including the intro/overview at http://www.omegahat.org/RSMethods/. Finally, I'm a bit concerned that one article mentioned that S4 inheritance, in practice, is used mostly for data, not methods (Thomas Lumley, R News 4(1), June 2004: p. 36). Am I going down a road I shouldn't travel? -- Ross Boylan wk: (415) 502-4...
2004 Dec 28
4
Developing R classes
Hi, I´m trying to write some R classes but I din´t find documentation enought to develop them. I read there is 2 ways to 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:
2001 Apr 23
1
several bugs (PR#918)
# Your mailer is set to "none" (default on Windows), # hence we cannot send the bug report directly from R. # Please copy the bug report (after finishing it) to # your favorite email program and send it to # # r-bugs@r-project.org # ###################################################### 1. as.numeric behaves differently in R than in S and I think this shows a bug in how S3
2001 Aug 07
3
Packages: What expressions are allowed outside/before .First.lib?
Sorry for this long message. The two first questions asks for general coding standard when creating packages, the third one asks if the .R files are concatenated in lexical order or not, the fourth question is a "how-to" question. All questions are related. If there is a reference where I can read about this please tell me, because then I could repost a more restricted set of questions.