[R-br] parametros booleano e numerico
Cleber N.Borges
klebyn em yahoo.com.br
Quarta Abril 4 21:27:07 BRT 2012
olá a todos,
alguem sabe o motivo do valor 1 não ter o mesmo efeito de TRUE (booleano)
na função memory.size?
fiz alguns testes e acabei com essa duvida. Grato
Cleber
---------------------------
> memory.size()
[1] 23.86
> memory.size(max=TRUE)
[1] 25.62
> memory.size(max=FALSE)
[1] 23.86
>
> memory.size(max=1)
[1] 7935.37
Warning message:
In memory.size(max) : cannot decrease memory limit: ignored
> memory.size(max=0)
[1] 7935.37
Warning message:
In memory.size(max) : cannot decrease memory limit: ignored
>
> memory.size
function (max = FALSE)
round(.Internal(memory.size(max)), 2L)
<bytecode: 0x00000000054d5738>
<environment: namespace:utils>
>
> memory.size(max=(1==TRUE))
[1] 25.62
> memory.size(max=(0==TRUE))
[1] 23.92
>
> 23==TRUE
[1] FALSE
> 1==TRUE
[1] TRUE
> 23==TRUE
[1] FALSE
>
> 0==FALSE
[1] TRUE
> 2==FALSE
[1] FALSE
>
> sessionInfo()
R version 2.15.0 (2012-03-30)
Platform: x86_64-pc-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=Portuguese_Brazil.1252 LC_CTYPE=Portuguese_Brazil.1252
[3] LC_MONETARY=Portuguese_Brazil.1252 LC_NUMERIC=C
[5] LC_TIME=Portuguese_Brazil.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
>
Mais detalhes sobre a lista de discussão R-br