Displaying 20 results from an estimated 120 matches similar to: "S3 internal and group generics"
2004 Jun 26
1
S4 group "Math", "getGroupMembers", "genericForPrimitive"
Hi,
I found the following on Windows 2000/NT
R Version 1.9.1 (2004-06-21) (also Version 1.9.0):
The S4 group "Math" doesn't work as documented; i.e., "log", "log10",
"gamma" and "lgamma" are included
in the documentation but don't work. See example code below.
Moreover, what about 'genericForPrimitive' which is used
in
2010 Aug 02
1
Convert an expression to a function
Hi John,
Here is my code practicing. Please give me some advises. Thank you.
Wu Gong
# Extract the function string
f.str <- sub("y~","",exprtext)
# Get arglist from the text
sp1 <- paste("\\",c(getGroupMembers(Arith),"(",")"),sep="")
sp2 <- getGroupMembers(Math)
sps <-
2003 May 30
3
Missing 'getGroupMembers()'
Hi,
I'm trying to write a method such that my own classes can be used with the
groups like "Summary" and "Math", but when I tried to look for examples or
just wanted to get an idea of which functions are the members of a group, I
found out that the function "getGroupMembers" is not present... I couldn't
find an alternative function, if there is one. Does
2009 Aug 09
1
binary operators that implement row and column sweeps of matrices by vectors
Submitted for perusal, comment, improvements, and/or critique. The presentation is in 3 sections: motivation, code, and comment.
Motivation:
As a new-comer to R from matrix oriented Gauss and Mata, I miss the tools for using a vector (and operator) to ‘sweep’ across a matrix.
Here is how these work. If M is I rows by J columns, then one entry corresponding to
2004 Nov 15
1
R-2.0.1 is released
I've rolled up R-2.0.1.tgz a short while ago. This is a maintenance
version mainly to fix a number of minor bugs and issues. (Some rather
nasty ones were Windows-specific - please check the CHANGES file for
those.)
You can get it from
http://cran.r-project.org/src/base/R-2.0.1.tar.gz
or wait for it to be mirrored at a CRAN site nearer to you. Binaries
for various platforms will appear in
2004 Nov 15
1
R-2.0.1 is released
I've rolled up R-2.0.1.tgz a short while ago. This is a maintenance
version mainly to fix a number of minor bugs and issues. (Some rather
nasty ones were Windows-specific - please check the CHANGES file for
those.)
You can get it from
http://cran.r-project.org/src/base/R-2.0.1.tar.gz
or wait for it to be mirrored at a CRAN site nearer to you. Binaries
for various platforms will appear in
2014 Nov 25
0
problem with setGroupGeneric from package methods
Hi,
There seems to be a problem with setGroupGeneric() from package 'methods'. The symptoms are somewhat erratic, in the sense that small changes may lead to any of the following behaviours.
1.Package works without problems on Windows and installs on Linux but gives error when loaded with library().
2.Package installs on both systems and gives error when loaded on any of them.
3.
2008 Feb 27
1
Warnings generated by log2()/log10() are really large/takes a long time to display
x <- rnorm(1e6);
y <- log(x); # or logb(x) or log1p(x)
w <- warnings();
print(object.size(w));
## [1] 480
str(w);
$ NaNs produced: language log(x)
- attr(*, "dots")= list()
- attr(*, "class")= chr "warnings"
y <- log2(x); # or log10(x)
w <- warnings();
print(object.size(w));
## [1] 8000536
str(w);
## List of 1
## $ NaNs produced: language
2005 Dec 24
8
Prototype OOP example
Hi,
Here is what I want to do:
Labour = Class.create();
Labour.prototype = {
initialize:function(name){
this.name = name;
}
}
What I want to do is create a class called "Worker" which will inherit from
"Labour", and the signature of "initialize" is "function(name, position)".
May I ask what should do?
Thank you all very much for the
2006 Oct 09
0
dispatch on functions (was: Re: ifelse(logical, function1, function2) does not work)
On 10/7/06, Gabor Grothendieck <ggrothendieck at gmail.com> wrote:
> I have noticed that dispatch on functions seems not to work
> in another case too. We define + on functions (I have ignored
> the niceties of sorting out the environments as we don't really
> need it for this example) but when we try to use it, it fails even
> though in the second example if we run it
2010 Jan 19
2
Help deciphering segfault in make check
Dear R Help,
I work with the Sage project, and we are trying to improve the ability
to use R through Sage. Most things work, but make check seems to
cause problems on certain platforms, and now that we want to upgrade
to 2.10.1 I thought we should ask for help!
R builds just fine on both Mac and Linux, but some things in make
check seem to break on certain Linux boxes that don't on Mac or
2024 Apr 24
0
[Rd] R 4.4.0 is released
The build system rolled up R-4.4.0.tar.gz and R-4.4.0.tar.xz (codename "Puppy Cup") this morning.
This is a major update, containing many new features and bug fixes.
The list below details the changes in this release.
You can get the source code from
https://cran.r-project.org/src/base/R-4/R-4.4.0.tar.gz
https://cran.r-project.org/src/base/R-4/R-4.4.0.tar.xz
or wait for it to be
2024 Apr 24
0
[Rd] R 4.4.0 is released
The build system rolled up R-4.4.0.tar.gz and R-4.4.0.tar.xz (codename "Puppy Cup") this morning.
This is a major update, containing many new features and bug fixes.
The list below details the changes in this release.
You can get the source code from
https://cran.r-project.org/src/base/R-4/R-4.4.0.tar.gz
https://cran.r-project.org/src/base/R-4/R-4.4.0.tar.xz
or wait for it to be
2005 Apr 18
1
R-2.1.0 is released
I've rolled up R-2.1.0.tar.gz a short while ago. This version contains
several substantial changes and additions, perhaps most notably the
UTF8 and Internationalization changes. See the full list of changes
below.
You can get it from
http://cran.r-project.org/src/base/R-2/R-2.1.0.tar.gz
or wait for it to be mirrored at a CRAN site nearer to you. Binaries
for various platforms will appear in
2005 Apr 18
1
R-2.1.0 is released
I've rolled up R-2.1.0.tar.gz a short while ago. This version contains
several substantial changes and additions, perhaps most notably the
UTF8 and Internationalization changes. See the full list of changes
below.
You can get it from
http://cran.r-project.org/src/base/R-2/R-2.1.0.tar.gz
or wait for it to be mirrored at a CRAN site nearer to you. Binaries
for various platforms will appear in
2007 Apr 13
1
Sendmail Generics Configuration LDAP
I am trying to configure Sendmail to do Generics lookups using LDAP. I added
FEATURE(`genericstable', `LDAP') to my sendmail.mc file, and was planning on
using an existing LDAP directory that should contain the information needed
(currently doing aliasing). I do not know where to specify the non-standard
attributes that we are using, and would prefer to not change my
sendmail.cfdirectly
2002 Apr 29
0
methods package: inheriting from structures; group generics
Now that 1.5 is released, some changes have been committed to the
r-devel version of the methods package.
They are mostly bug fixes (or making things work more as users would
expect) in two areas:
1. new classes that extend one of the basic datatypes that have
attributes but had no class attribute in S3 (e.g., "matrix" or "ts").
The previous code didn't handle the
2007 Jul 12
1
Generics in base with no ...
Hi,
Some generics in base that don't have the ... extra argument:
rev(), t(), scale() and unlist(). Is there any plan to make these
more reusable? I used to be interested in having a rev() method for
my objects, but since I needed an extra argument for it, then I was
forced to create my own generic instead. And because I didn't want
to mask base::rev(), I chose another name too. The only
2009 Feb 02
1
best reference on generics
Hello, All:
What would you say is the best succinct reference to cite on use
of generic functions, especially S3 generics?
I want to add an appropriate citation on this to a forthcoming
book in the Springer "useR!" series (discussing the use of the 'fda'
package, which uses the S3 standard).
Thanks,
Spencer Graves
2009 Nov 25
1
group generics
I have classes A and B, where B contains A. In the implementation of
the group generic for B I would like to use the corresponding group
generic for A. Is there a way to do that?
I would also appreciate any comments if what I'm trying to do seems like
the wrong approach.
Here's a stripped down example:
setClass("A",