Under linux and windows,
> as.Date("-06-06")
[1] "-06-06"
> as.Date("-07-07")
[1] "1970-01-01"
>
Feature? Bug? help(as.Date) does not mention this case.
Bo.
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-dev
Dear Martin,
A couple of comments on the new plots (numbers 5 and 6): Perhaps some more
thought could be given to the plotted contours for Cook's D (which are 0.5
and 1.0 in the example -- large Cook's Ds). A rule-of-thumb cut-off for this
example is 4/(n - p) = 4/(50 - 5) = 0.089, and the discrep
"Whit Armstrong" <[EMAIL PROTECTED]> writes:
> Is this a bug, or have I misunderstood the proper use of lm?
Dunno. It appears that logicals like factors are not supposed to have
matrix structure. What actually happens is that setting contrasts
strips dimension attributes
Browse[1]>
debug: for (
Is this a bug, or have I misunderstood the proper use of lm?
Thanks,
Whit
code:
x <- rnorm(50)
y <- matrix(as.logical(round(runif(100),0)),ncol=2)
NROW(x)==NROW(y)
lm(x~y)
> x <- rnorm(50)
> y <- matrix(as.logical(round(runif(100),0)),ncol=2)
> NROW(x)==NROW(y)
[1] TRUE
> lm(x~y)
Error in "[[
You have to coerce to numeric yourself if that's what you want. Eg in the R
code, as.numeric(1:12) rather than 1:12. Or check the type first in C with
TYPEOF before doing NUMERIC_POINTER or INTEGER_POINTER (the difference is
that the two do different casts; they both point a fixed offset into the R
Eryk,
On Sep 13, 2005, at 2:26 PM, nwew wrote:
> printf("%f\n",NUMERIC_POINTER(mat)[1]);
> [...]
> However it prints
> 0.
> if [EMAIL PROTECTED] are integers ( [EMAIL PROTECTED]<-matrix(1:12,3,4) ).
>
> Can anyone explain it to me why?
> I thought that NUMERIC_POINTER makes it clear that i ex
On Tue, 13 Sep 2005, nwew wrote:
> Dear R-developers,
>
> Using .Call I pass a S4 class with e.g. the following class definition:
>
> setClass("mmatrix",representation(
>data="matrix")
> )
>
> On the "C side" i do
> mat = GET_SLOT(vs,install("data"));
> and then:
> printf("%f\n",NUMERIC_POI
On 9/13/2005 1:55 PM, Gabor Grothendieck wrote:
> Thanks. That's great. If I understand correctly, versions that
> are as of the one you just uploaded will have this facility and for older
> versions I need to search in the old, existing, way. Thus once 2.3, say,
> comes out we will have 2.2. and
Dear R-developers,
Using .Call I pass a S4 class with e.g. the following class definition:
setClass("mmatrix",representation(
data="matrix")
)
On the "C side" i do
mat = GET_SLOT(vs,install("data"));
and then:
printf("%f\n",NUMERIC_POINTER(mat)[1]);
The above print statement produces the co
Thanks. That's great. If I understand correctly, versions that
are as of the one you just uploaded will have this facility and for older
versions I need to search in the old, existing, way. Thus once 2.3, say,
comes out we will have 2.2. and 2.3 in the registry.
That means that as of 2.3 it will
On 9/9/2005 10:11 PM, Gabor Grothendieck wrote:
> On 9/9/05, Duncan Murdoch <[EMAIL PROTECTED]> wrote:
>> I've just committed some changes to allow R to be built and to use
>> MikTeX without needing the Rd.sty files to be installed to localtexmf.
>> Unfortunately, the changes are not compatible wit
As some of you R-devel readers may know, the plot() method for
"lm" objects is based in large parts on contributions by John
Maindonald, subsequently "massaged" by me and other R-core
members.
In the statistics litterature on applied regression, people have
had diverse oppinions on what (and how
12 matches
Mail list logo