Displaying 20 results from an estimated 24 matches for "math2".
Did you mean:
path2
2008 Feb 02
2
argument order for Math2 group functions in R 2.6.x (PR#10683)
signif() is primitive in 2.6.x, and so uses positional matching (almost
all primitives do).
See the NEWS file for the announcement of the change.
On Sat, 2 Feb 2008, ben.hansen at umich.edu wrote:
> Full_Name: Ben Hansen
> Version: 2.6.1
> OS: Windows
> Submission from: (NULL) (66.93.3.101)
>
>
> Hi,
>
> In R 2.6.0 or 2.6.1 on Windows, I get the following upon
2008 Feb 02
0
argument order for Math2 group functions in R 2.6.x (PR#10681)
Dear Ben,
If you take a look at the definition of signif() in R 2.6.1 and, e.g.,
in R 2.5.1 you'll see the source of the problem:
R 2.6.1:
> signif
function (x, digits = 6) .Primitive("signif")
R 2.5.1:
> signif
function (x, digits = 6)
.Internal(signif(x, digits))
<environment: namespace:base>
>From ?Primitive:
"The advantage of .Primitive over .Internal
2008 Feb 01
1
argument order for Math2 group functions in R 2.6.x (PR#10679)
Full_Name: Ben Hansen
Version: 2.6.1
OS: Windows
Submission from: (NULL) (66.93.3.101)
Hi,
In R 2.6.0 or 2.6.1 on Windows, I get the following upon opening the GUI (no
previous commands or special settings):
> signif(digits=4, x=1/3)
[1] 4
It seems to be taking 4 to be the "x" argument, the number to be rounded.
However, my understanding (perhaps mistaken) was that it should
2006 Sep 07
2
Matrix package in R-2.4.0alpha
...) :
in 'Matrix' methods specified for export, but none defined: BIC,
anova, coef, confint, deviance, fitted, fixef, formula, head, lmer, logLik,
mcmcsamp, plot, qqmath, ranef, residuals, resid, simulate, summary, tail,
terms, update, vcov, VarCorr, with, cbind2, rbind2, Arith, Math, Math2,
Summary, Compare, !, +, %*%, Schur, as.array, as.matrix, as.vector, band,
chol, colMeans, colSums, coerce, crossprod, determinant, diag, dim,
dimnames, dimnames<-, expand, expm, kronecker, image, isSymmetric, norm,
rcond, rowMeans, rowSums, show, solve, t, tcrossprod, tril, triu
Error: package/...
2005 Dec 29
1
trouble with S4 methods for group "Summary"
Hello. This question concerns the Methods package. I have created a
new class and am trying to set a method for it for S4 group generic
"Summary". I have run into some signature problems. An example:
> setClass("track", representation(x="numeric", y="character"))
[1] "track"
> setGeneric("max", group="Summary")
2012 Sep 15
0
[Repost 3/3] Minor glitch in 'Writing R Extensions'
...s, ie
'double fprec is used by 'signif (not round)
'double fround' is used by 'round' (not signif)
as I just found out by trying to unit-test wrappers just added to Rcpp.
Sources seem to agree -- src/main/arithmetic.c has
case 10001: return Math2(args, fround);/* round(), src/nmath/fround.c */
case 10004: return Math2(args, fprec); /* signif(), src/nmath/fprec.c */
So with that I suggest to alter the R-exts.texi as the patch below does.
Hope this helps, Dirk
edd at max:/tmp$ diff -u R-exts.texi.orig R-exts.texi
---...
2006 Dec 10
1
Problem with loading "library(Matrix)" at Ubuntu
...ubuntu 6.06 LTS), I often
met problems when loading some packages like Matrix.
Here is the details:
> library(Matrix)
Error in loadNamespace(package, c(which.lib.loc, lib.loc), keep.source =
keep.source) :
in 'Matrix' methods specified for export, but none defined: Arith,
Math, Math2, +, %*%, Schur, as.matrix, chol, colMeans, colSums, coerce,
crossprod, determinant, diag, dim, dimnames, dimnames<-, expand, expm,
kronecker, image, norm, rcond, rowMeans, rowSums, show, solve, t, tcrossprod
Error: package/namespace load failed for 'Matrix'
Here is my system:
> sess...
2007 Dec 11
2
range( <dates>, na.rm = TRUE ) (PR#10508)
...=20
>> =20
>> =20
>>> Is this a bug?
>>> =20
>>> =20
>> =20
>> =20
>>> Yes, I see in the "What's New" page:
>>> =20
>>> =20
>> =20
>> =20
>>> "The Math2 and Summary groups (round, signif, all, any, max, min,
>>> summ, prod, range) are now primitive."
>>> =20
>>> =20
>> =20
>> =20
>>> Is the "primitive" characteristic supposed to behave as above with
>>> missing d...
2007 Dec 11
1
[Kurt.Hornik@wu-wien.ac.at: Re: range( <dates>, na.rm = TRUE )] (PR#10508)
..., the command:
>> range( as.Date( c( "2007-11-06", NA ) ), na.rm = TRUE )
> yielded:
>> [1] "2007-11-06" "2007-11-06"
> Now I get:
>> [1] NA NA
> Is this a bug?
> Yes, I see in the "What's New" page:
> "The Math2 and Summary groups (round, signif, all, any, max, min,
> summ, prod, range) are now primitive."
> Is the "primitive" characteristic supposed to behave as above with
> missing dates?
> Thanks for any help that you can provide.
This is really a question for r-devel or...
1997 May 05
0
R-beta: R 0.49 -- "funny" bug: beta(.) gives lbeta(.); lbeta(a,b) gives a
...(.)
and lbeta(.) doesn't call either one.
The bug has already been in 0.50--"pre 3", but is not in 16.1.
It must have been caused by the addition of all the complex stuff.
I've looked in src/main/names.c and arithmetic.c
and couldn't see any 'code' error
{do_math2(..) code / math2() switch statement}
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subj...
2005 Apr 11
0
S4 group methods don't dispatch for "Summary"?
...res:
x
target "foo"
defined "foo"
If I set a method directly for the members of "Summary" (e.g. min),
the new function is still not dispatched.
Of the group generics listed in ?Summary, Arith, Compare, Ops, and
Complex work for me, and I cannot get Math, Math2 or Summary to work.
I presume I'm probably missing something, but am at a loss. I would
appreciate any pointers as to what I am doing wrong. I have run into
this problem on both Linux/R 2.0.1, and Windows/R 2.0.0 (will upgrade
soon!).
Thanks,
Rich
--
Rich FitzJohn
rich.fitzjohn <at>...
2005 Jun 14
1
operators as S4 methods
Dear all,
I need to re-define some mathematical operators (+, *, /, etc) for an S4
class based on array. All references I have found (S Programming, Green
Book) show how to define S3 methods for this (like in page 89 of S
Programming for "-.polynomial"). What is the preferred S4 way for doing
this? I hope I haven't missed some obvious piece of documentation.
Many thanks,
Iago
2013 Jul 31
2
S3 internal and group generics
...S3 internal generics:
s3_internal <- function(fname) {
# Functions in S4 group generics should be the same
group <- c(getGroupMembers("Arith"), getGroupMembers("Compare"),
getGroupMembers("Logic"), getGroupMembers("Math"), getGroupMembers("Math2"),
getGroupMembers("Summary"), getGroupMembers("Complex"))
primitive <- .S3PrimitiveGenerics
# Extracted from ?"internal generic"
internal <- c("[", "[[", "$", "[<-", "[[<-", "$<-&qu...
2007 Dec 11
0
[Kurt.Hornik@wu-wien.ac.at: Re: range( <dates>, na.rm = (PR#10509)
...=20
>
> =20
>> Now I get:
>> =20
>
> =20
>>> [1] NA NA
>>> =20
>
> =20
>> Is this a bug?
>> =20
>
> =20
>> Yes, I see in the "What's New" page:
>> =20
>
> =20
>> "The Math2 and Summary groups (round, signif, all, any, max, min,
>> summ, prod, range) are now primitive."
>> =20
>
> =20
>> Is the "primitive" characteristic supposed to behave as above with
>> missing dates?
>> =20
>
> =20
>> Thanks...
2019 Sep 27
0
missing imports not detected by 'R CMD check' (?)
...ic"
> Looking at your https://cran.r-project.org/web/packages/Matrix/NAMESPACE:
> ## try to import all we need, but not more
> importFrom("methods"
> ## still needed {group generics needed to be explicitly imported} ?
> , Ops, Arith, Compare, Logic, Math, Math2, Summary, Complex
> ## generics for which we export new methods:
> , cbind2, rbind2, coerce, show
> , kronecker
> ## things we call,.. necessary when Matrix is loaded, but not attached, as in
> ## Rscript --vanilla -e 'require(methods);(M <- Matrix::Ma...
2012 Feb 11
2
How to see a R function's code
I was wondering how do I actually see what's inside a function, say,
density of t distribution, dt()?
I know for some, I can type the function name inside R and the code will be
displayed. But for dt(), I get
> dt
function (x, df, ncp, log = FALSE)
{
if (missing(ncp))
.Internal(dt(x, df, log))
else .Internal(dnt(x, df, ncp, log))
}
<environment: namespace:stats>
I
1998 Jul 09
1
numeric(0) -> NA
I noticed this in current intermediate patch version:
> runif(0,0,4095)
numeric(0)
> round(runif(0,0,4095))
[1] NA
I don't like it, but maybe it is the way it is supposed to be. I would
prefer for it to stay numeric(0).
I notice also
> ceiling(runif(0,0,4095))
numeric(0)
> floor(runif(0,0,4095))
numeric(0)
which leads me to thing round() is not working right.
I have some code
2018 May 31
3
Understanding the sequence of events when calling the R dpois function
Hello all,
I am trying to get a better understanding of the underlying code for the stats::dpois function in R and, specifically, what happens under the hood when it is called. I finally managed to track down the C course at: https://github.com/wch/r-source/blob/trunk/src/nmath/dpois.c. It would seem that the dpois C function is taking a double for each of the x and lambda arguments so I am a bit
2004 Sep 17
1
R CMD check does not checks for superfluous documentation (PR#7231)
Hi!
Due to package maintenance I have removed some functions but forgot to update the coresponding Rd files.
If R CMD check is checking for missing documentation entries why it does not check for documentation entries which tell the user about nonexisting funcitons?
In my opinion checking for documentation entries that document non-existing functions is much more important than the other way
2006 Aug 30
1
setMethod() and log()
Hi
I am having difficulty with setMethod(). I have a "brob" class of
objects whose
representation has two slots: "x" and "positive". Slot "x" (double)
holds the log
of a number and slot "positive" (logical) its sign. The idea is
that large numbers
can be handled.
I'm trying to implement a log() method using an analogue of the