On Jan 3, 2013, at 05:28 , Jeff Ryan wrote:
> Happy 2013, Day 2.
>
> I can't seem to figure out why parent.frame() works differently depending
> on whether it is a formal/default argument or a passed argument.
Because defaults are evaluated in the function's evaluation environment,
whereas pas
Happy 2013, Day 2.
I can't seem to figure out why parent.frame() works differently depending
on whether it is a formal/default argument or a passed argument.
# code: basic setup
tmp <- tempfile()
A <- 101
save(A,file=tmp);rm(A)
# these work as expected, loading into the parent of the c
Hi all,
On Tue, Jan 1, 2013 at 6:01 PM, Thomas Lumley wrote:
> Now, if most of the matrices you are trying to invert are actually
> invertible (as I would hope), it may be quicker to use the Cholesky
> approach will a fallback to the SVD for semidefinite matrices. That is,
> something like
>
>
Thanks and apologies for the noise.
Best wishes,
Tobias
On 01/02/2013 07:43 PM, Joshua Ulrich wrote:
It's expected. From ?"<":
If the two arguments are atomic vectors of different types, one is
coerced to the type of the other, the (decreasing) order of
precedence being char
It's expected. From ?"<":
If the two arguments are atomic vectors of different types, one is
coerced to the type of the other, the (decreasing) order of
precedence being character, complex, numeric, integer, logical and
raw.
> as.character(1e-2) < 0.05
[1] TRUE
> as.character
L.S.
Is the following expected and/or documented?
> 1e-2 < "0.05"
[1] TRUE
> 1e-4 < "0.05"
[1] FALSE
Many thanks in advance for any pointer.
Best,
Tobias
> sessionInfo()
R Under development (unstable) (2013-01-01 r61512)
Platform: i386-w64-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=English