Displaying 20 results from an estimated 4000 matches similar to: "Old style and new style classes"
2024 May 09
1
Compilation problems with R4.4.0
Thank you!
Installing openblas and then using ./configure --without-lapack --with-blas --enable-R-shlib
..got everything working. Does this need reporting upstream as a bug in R or lapack? I'm good now, but it might help others to get this fixed.
Simon.
-----Original Message-----
From: Ivan Krylov <ikrylov at disroot.org>
Sent: 08 May 2024 20:05
To: Simon Andrews
2024 May 08
1
Compilation problems with R4.4.0
? Wed, 8 May 2024 16:59:25 +0000
Simon Andrews <simon.andrews at babraham.ac.uk> ?????:
> The lapack libraries are:
>
> $ rpm -qa | grep lapack
> lapack-3.9.0-10.el9.x86_64
> lapack64_-3.9.0-10.el9.x86_64
> lapack64-3.9.0-10.el9.x86_64
> lapack-devel-3.9.0-10.el9.x86_64
Thanks for this information! I figured out I needed to enable the
"PowerTools/CRB" repo,
2004 Apr 20
2
Re: [R] Unexpected behaviour of identical (PR#6799)
"Swinton, Jonathan" <Jonathan.Swinton@astrazeneca.com> writes:
> # works as expected
> > ac <- c('A','B');
> > identical(ac,ac[1:2])
> [1] TRUE
>
> #but
> > af <- factor(ac)
> > identical(af,af[1:2])
> [1] FALSE
>
> Any opinions?
Did a cross-check with Splus and it doesn't do that , so I think it
2003 Dec 19
1
Missing arguments to new
Is this the expected and/or correct behaviour? And if
so, how do I persuade new to interpret a named but
missing argument as missing?
-------------
setClass("testMissing",representation(a="numeric"),prototype=list(a=0));
showMissing <- function(real.arg,missing.arg) {
really.missing <- new("testMissing");
show(really.missing);
really.there <-
2004 Apr 19
3
How to write an S4 method for sum or a Summary generic
If I have a class Foo, then i can write an S3 method for sum for it:
>setClass("Foo",representation(a="integer"));aFoo=new("Foo",a=c(1:3,NA))
>sum.Foo <- function(x,na.rm){print(x);print(na.rm);sum(x at a,na.rm=na.rm)}
>sum(aFoo)
But how do I write an S4 method for this? All my attempts to do so have
foundered. For example
2018 Dec 21
3
formula(model.frame(..)) is misleading
Dear Martin,
Since no one else has picked up on this, I?ll take a crack at it:
The proposal is to define the S3 class of model-frame objects as c(?model.frame?, ?data.frame?) (not the formal class of these objects, even though this feature was coincidentally introduced in S4). That?s unlikely to do harm, since model frames would still ?inherit? data.frame methods.
It's possible that some
2001 Sep 13
2
SV4 on R?
Dear R-Developers,
The traffic today on s-news where Terry Therneau, I, and others
are reporting some of the problems we have had using or
converting applications to SV4 reminded me of something
Duncan Temple Lang had mentioned to me a year ago that
I wanted to follow up on. I recall that Duncan said either that if SV4
were to be implemented in R that it would not be
the default behavior, or
2006 Jul 25
1
Multiple tests on repeated measurements
Dear R-helpers:
My question is how do I efficient and valid correct for multiple tests in a repeated measurement design:
Suppose we measure at two distinct visits with repeated subjects a treatment difference on the same variable.
The treatment differences are assessed with a mixed model and adjusted by two methods for multiple tests:
# 1. Method: Adjustment with library(multcomp)
2004 Jul 21
1
dumpClass, hasSlot in R?
Venables and Ripley (2000) R Programming (Springer, sec. 5.1) and
Chambers (1998) Programming with Data (Springer) describe functions such
as dumpClass and hasSlot that I can not find in R 1.9.1 for Windows nor
in the "R site search". What do people use for similar functionality?
Also, what resources have people found useful for learning about S4
classes, other than these 2
1999 Mar 24
1
will book on S plus help understanding R ?
Hi all,
Was wondering if any body would know if the book "Programming with Data" a guide to S language could be used as a guide to working with the R language.
Comments, suggestions, a book review is welcomed.
Thanks
Josef Bohart
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jan 17
1
data.matrix returns mode logical for zero rows (PR#8496)
Full_Name: Jonathan Swinton
Version: 2.2.1
OS: Windows
Submission from: (NULL) (193.132.159.169)
#The first line of description for data.matrix says that it will
# 'Return the matrix obtained by converting all the variables in a
# data frame to numeric mode and then binding them together as the
# columns of a matrix.'
#However when called with a data.frame with zero rows,
2018 Dec 20
1
formula(model.frame(..)) is misleading
When formula() is applied to the output of model.frame() it ignores the
formula in the model.frame's 'terms' attribute:
> d <- data.frame(A=log(1:6), B=LETTERS[rep(1:2,c(2,4))], C=1/(1:6),
D=rep(letters[25:26],c(4,2)), Y=1:6)
> m0 <- model.frame(data=d, Y ~ A:B)
> formula(m0)
Y ~ A + B
> `attributes<-`(terms(m0), value=NULL)
Y ~ A:B
This is in part
1999 Jun 29
3
S v. 5
Does R, or will R, be integrating the changes to the Chambers/Lucent S
language under their version 5.0? If not already, then when?
John Thaden
Little Rock, Arkansas, USA
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
2003 Dec 18
1
qbinom when probability is 1 (PR#5900)
Full_Name: Jonathan Swinton
Version: 1.8.0
OS: Windows 2000
Submission from: (NULL) (193.132.159.34)
Calling qbinom with a sample probability of 1 returns NaN
> qbinom(p=0.95,size=10,prob=1)
[1] NaN
I believe that this is wrong and that qbinom(p,size,prob=1) should always be
size for 0<p<=1.
The documentation says that
The quantile is defined as the smallest value x such that F(x)
2001 Aug 26
1
Re: Variable labels (was Re: [R] Reading SAS version 8 d ata into
> From: fharrell@virginia.edu [mailto:fharrell@virginia.edu]
>
[snip]
> I think your code is more complex that is really needed.
>
> The problem with defaulting to deparse(...) is that
> multiple function pass-throughs return the wrong result:
>
[snip]
> So I don't see a large role for the deparse(...) method.
>
Actually one of the reasons that I included the
2007 May 17
1
MICE for Cox model
R-helpers:
I have a dataset that has 168 subjects and 12 variables. Some of the
variables have missing data and I want to use the multiple imputation
capabilities of the "mice" package to address the missing data. Given
that mice only supports linear models and generalized linear models (via
the lm.mids and glm.mids functions) and that I need to fit Cox models, I
followed the previous
2007 May 15
1
Rgui open script file selection filter wish
When using the File/Open Script.. dialogue on Windows, the list of filters
offered is
R files (*.R)
S files (*.q,*.ssc,*.S)
All files (*.*)
I wish that an additional filter be offered as
Sweave files (*.Rnw,*.Snw)
I find that the Rgui script editor is adequate for most of my R development
and tend to edit *.Rnw files there.
_
platform
2007 May 31
1
Problem building R from source on Windows
I have a problem when building R from source on Windows XP.
When I get to 3.1.3 of the Installation and Administration manual and try
make all recommended
from R_HOME it fails with
make: *** No rule to make target `all'. Stop.
I am pretty sure there is an obvious and well documented thing I am missing,
but missing it I am. Any clues?
Is my problem that I have a Makefile.in but not a
2012 Jul 27
1
Version of substitute that evaluates it's first argument
Hi all,
Does there already exist a version of substitute that evaluates it's
first argument? (i.e. it accepts an already quoted expression). This
seems like something that's pretty handy, but I haven't found any
existing function to do it:
substitute_e <- function(expr, env) {
eval(substitute(substitute(expr, env), list(expr = expr)))
}
f <- quote(x + y + z)
substitute(f,
2008 Sep 29
1
describe function in package Hmisc and function format.dates in chron (PR#13087)
Full_Name: Kem Phillips
Version: 2.7.1 (2008-06-23)
OS: Windows Xp professional
Submission from: (NULL) (98.221.200.108)
The Hmisc function describe fails, giving the error message:
Error in formatDateTime(dd, atx, !timeUsed) :
could not find function "format.dates"
Loading the chron package, where function dates apparently resides, does not
fix the problem. Note