Hi everybody,
I'm currently working towards my Master's degree as a student of
Computer Science at the University of Saarbrücken and highly
interested in compiler construction, interpretation techniques,
optimization, programming languages and more. :)
Two professors of my university appr
"JC" == John Chambers
on Wed, 11 Mar 2009 19:10:29 -0700
JC> The problems are related to masking objects (in this case ) in
JC> the search list, not especially related to methods.
JC>
JC> It was in order to get around such problems that NAMESPACE
JC> was added to
JC> R
I am a bit confused about the semantics of classes, [, and [[.
For at least some important built-in classes (factors and dates), both
the getter and the setter methods of [ operate on the class, but
though the getter method of [[ operates on the class, the setter
method operates on the underlying
POSIXct/lt supports fractional seconds (see Sub-second Accuracy
section of man page), but there seem to be some inconsistencies in
their handling.
Converting to POSIXlt and back does not give back the same time for
times before the origin:
> t0 <- as.POSIXct('1934-01-05 23:59:59.1')
> t0
[1]
Stavros,
Two really quick comments:
a) you need to enable sub-second print formats
b) AFAIK pre-epoch times are second-class citizens
R> options("digits.secs"=6) ## print with 6 digits for microseconds
R> t0 <- as.POSIXct('1974-01-05 23:59:59.1')
R> t0
[1] "1974-01-05 23:59:59.1 CST"
On Sun, Mar 15, 2009 at 1:04 PM, Dirk Eddelbuettel wrote:
Dirk,
Thanks for your reply.
> a) you need to enable sub-second print formats
Yes, if I want to display sub-second printing. But I was just looking
at the rounding behavior.
> b) AFAIK pre-epoch times are second-class citizens
In wha
On 12/03/2009 3:16 PM, Mohammad Nikseresht wrote:
Hi,
I receive the following error while I try to install rgl package:
CC -xtarget=native64 -I/opt/R-2.8.1/lib/R/include
-I/opt/SUNWhpc/HPC8.1/sun/include -DHAVE_PNG_H -I/usr/include/libpng12
-DHAVE_FREETYPE -Iext/ftgl -I/usr/sfw/include/freety
I understand the problem and wasn't voting either way on the S3
replacement function generic you want in stats. Prof. Ripley noted that
it's odd to have stats doing that to solve the problems of two outside
packages when it doesn't even have the function concerned, but others
may have opinio
The semantics of [ and [[ don't seem to be fully specified in the
Reference manual. In particular, I can't find where the following
cases are covered:
> cc <- c(1); ll <- list(1)
> cc[3]
[1] NA
OK, RefMan says: If i is positive and exceeds length(x) then the
corresponding selection is NA.
> dpu
Berwin A Turlach wrote:
>
> Obviously, assuming that R really executes
> *tmp* <- x
> x <- "names<-"('*tmp*', value=c("a","b"))
> under the hood, in the C code, then *tmp* does not end up in the symbol
> table and does not persist beyond the execution of
> names(x) <- c("a","b")
On 15/03/2009 2:31 PM, Stavros Macrakis wrote:
The semantics of [ and [[ don't seem to be fully specified in the
Reference manual. In particular, I can't find where the following
cases are covered:
cc <- c(1); ll <- list(1)
cc[3]
[1] NA
OK, RefMan says: If i is positive and exceeds length(
Duncan,
Thanks for the reply.
On Sun, Mar 15, 2009 at 4:43 PM, Duncan Murdoch wrote:
> On 15/03/2009 2:31 PM, Stavros Macrakis wrote:
>> dput(ll[3])
>> list(NULL)
>> ? i is positive and exceeds length(x); why isn't this list(NA)?
>
> Because the sentence you read was talking about "simple vecto
Stavros Macrakis wrote:
>
> Well, that's one issue. But another is that there should be a
> specification addressed to users, who should not have to understand
> internals.
>
this should really be taken seriously.
vQ
__
R-devel@r-project.org mailin
Full_Name: Majid Sarmad
Version: 2.8.1
OS: Linux / Windows
Submission from: (NULL) (194.225.128.135)
With thanks to Alberto Viglione, in HW.tests function of homtest package, there
is the following line
V2 <- (sum(ni * ((ti - tauReg)^2 + (t3i - tau3Reg)^2))/sum(ni) )^0.5
which is a mistypin
Hi.? There appears to be a bug in R function manova.? My friend and I both ran
it the same way as shown below (his run) with the shown data set. His results
are shown below. we both got the same results.? I was running with R 2.3.1. I'm
not sure what version he used.
Thanks very much,
David Bo
Just a couple of inline comments down below:
On 15/03/2009 5:30 PM, Stavros Macrakis wrote:
Duncan,
Thanks for the reply.
On Sun, Mar 15, 2009 at 4:43 PM, Duncan Murdoch wrote:
On 15/03/2009 2:31 PM, Stavros Macrakis wrote:
dput(ll[3])
list(NULL)
? i is positive and exceeds length(x); why
The following code produces an error in current R-devel
f <- function(value) {
if(!missing(value))
100
else
2
}
e <- new.env()
makeActiveBinding("x", f, e)
eval(substitute(list(x)), e)
The error, after calling 'eval' is
Error in eval(expr, envir, e
Joerg Jaspert, one of the ftpmasters / archive maintainers within Debian,
today posted a new list of 'Sections' to debian-devel-announce (see eg here
http://www.nabble.com/forum/ViewPost.jtp?post=22524830&framed=y )
This now includes a new Section:
gnu-rEverything about G
G'day Wacek,
On Sun, 15 Mar 2009 21:01:33 +0100
Wacek Kusnierczyk wrote:
> Berwin A Turlach wrote:
> >
> > Obviously, assuming that R really executes
> > *tmp* <- x
> > x <- "names<-"('*tmp*', value=c("a","b"))
> > under the hood, in the C code, then *tmp* does not end up in the
> > sym
19 matches
Mail list logo