`$` and `[` are primitives while `[.data.frame` is a longish R function
that does all sorts of clever things.
On 19/10/11 22:34, Stavros Macrakis wrote:
I was surprised to find that df$a[1] is an order of magnitude faster than
df[1,"a"]:
df<- data.frame(a=1:10)
system.time(replicate(10, d
For troubleshooting purposes, should utils::sessionInfo() show if the
attached packages (especially base packages) are byte compiled (with
make bytecode and/or R_COMPILE_PKGS set and not zero)?
Allan
__
R-devel@r-project.org mailing list
https://stat
You are not saying which platform you are working on but my guess would
be that the two locales have different character encodings. Try
specifying the encoding explicitly in the format that is right for your
platform; when I try to replicate your examples using
Sys.setlocale("LC_ALL", "he_IL.u
Maybe you can use the same approach as the pnmath library which replaces
many of the math functions with pthreads enabled ones when it is
loaded? That way people have a choice, and those who like to do things
like doMC() and therefore want to keep the core R single-threaded can
still do so.
On 19/08/10 19:49, Paul Johnson wrote:
Can one of you give me an R program that displays the benefits an
accelerated BLAS in R?
I thought the standard benchmark was (the somewhat artificial)
R-benchmark-25.R from
http://r.research.att.com/benchmarks/R-benchmark-25.R . I have some
exampl