Displaying 3 results from an estimated 3 matches for "r75319".
Did you mean:
r70319
2018 Sep 20
3
A different error in sample()
Good day,
The use of "rounding" also doesn't make sense. If The number is halfway between two integers, it is rounded to the nearest even integer.
> round(2.5)
[1] 2
--------------------------------------
Dario Strbenac
University of Sydney
Camperdown NSW 2050
Australia
2018 Sep 20
0
A different error in sample()
...))
1 2 3
399051 401035 199914
> table(sample.int(3, 1e6, replace = TRUE))
1 2 3
332956 332561 334483
> table(sample.int(2.01, 1e6, replace = TRUE))
1 2 3
497173 497866 4961
> sessionInfo()
R Under development (unstable) (2018-09-17 r75319)
Platform: x86_64-apple-darwin17.7.0 (64-bit)
Running under: macOS High Sierra 10.13.6
Matrix products: default
BLAS: /Users/whuber/R/lib/libRblas.dylib
LAPACK: /Users/whuber/R/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] st...
2018 Sep 20
2
A different error in sample()
...able(sample.int(3, 1e6, replace = TRUE))
>
> ???? 1????? 2????? 3
> 332956 332561 334483
>
> > table(sample.int(2.01, 1e6, replace = TRUE))
>
> ???? 1????? 2????? 3
> 497173 497866?? 4961
>
> > sessionInfo()
> R Under development (unstable) (2018-09-17 r75319)
> Platform: x86_64-apple-darwin17.7.0 (64-bit)
> Running under: macOS High Sierra 10.13.6
>
> Matrix products: default
> BLAS: /Users/whuber/R/lib/libRblas.dylib
> LAPACK: /Users/whuber/R/lib/libRlapack.dylib
>
> locale:
> [1] en_US.UTF-8/UTF-8/en_US.UTF-8/C/en_US.UTF-...