[R] function sample: diferences across R versions
Jose Claudio Faria
jo@ec|@ud|o@|@r|@ @end|ng |rom gm@||@com
Wed Jul 31 00:45:14 CEST 2019
Hi,
I just noticed the difference in a teaching data generation script between
version 3.6.1 and earlier.
#! R version 3.4.3
set.seed(2019); sample(1:10, 1)
[1] 8
#! R version 3.5.1patched
set.seed(2019); sample(1:10, 1)
[1] 8
#! R version 3.5.3patched
set.seed(2019); sample(1:10, 1)
[1] 8
#! R version 3.6.0patched
set.seed(2019); sample(1:10, 1)
[1] 8
#! R version 3.6.1patched
set.seed(2019); sample(1:10, 1)
[1] 9 # <--------------------------------- Here!
Is it a bug?
if not (is a new feature) how can I maintain compatibility between version
3.6.1 and all others?
Regards,
///\\\///\\\///\\\///\\\///\\\///\\\///\\\///\\\
Jose Claudio Faria
UESC/DCET/Brasil
joseclaudio.faria at gmail.com
Telefones:
55(73)3680.5545 - UESC
55(73)99966.9100 - VIVO
///\\\///\\\///\\\///\\\///\\\///\\\///\\\///\\\
If you have software to deal with statistics, you have arms;
if you have good software, you have arms and legs;
if you have software like R, you have arms, legs and wings...
the height of your flight depends only on you!
[[alternative HTML version deleted]]
More information about the R-help
mailing list