Displaying 5 results from an estimated 5 matches for "preserverandomseed".
2018 Mar 05
1
Random Seed Location
...packageStartupMessage(paste(strwrap(tip), collapse = "\n"))
>> }
>> <environment: namespace:ggplot2>
>>
>> There are probably many case of this in different R packages.
>>
>>
>> R WISH:
>>
>> There could be a
>>
>> preserveRandomSeed({
>> tip <- sample(tips, 1)
>> })
>>
>> function in R for these type of random needs where true random
>> properties are non-critical. This type of
>> "draw-a-random-number-and-reset-the-seed" is for instance used in
>> parallel:::initDefau...
2018 Mar 04
0
Random Seed Location
...tip <- sample(tips, 1)
> packageStartupMessage(paste(strwrap(tip), collapse = "\n"))
> }
> <environment: namespace:ggplot2>
>
> There are probably many case of this in different R packages.
>
>
> R WISH:
>
> There could be a
>
> preserveRandomSeed({
> tip <- sample(tips, 1)
> })
>
> function in R for these type of random needs where true random
> properties are non-critical. This type of
> "draw-a-random-number-and-reset-the-seed" is for instance used in
> parallel:::initDefaultClusterOptions() which is...
2018 Mar 04
2
Random Seed Location
...ogether? Buy the
ggplot2 book: http://ggplot2.org/book/")
tip <- sample(tips, 1)
packageStartupMessage(paste(strwrap(tip), collapse = "\n"))
}
<environment: namespace:ggplot2>
There are probably many case of this in different R packages.
R WISH:
There could be a
preserveRandomSeed({
tip <- sample(tips, 1)
})
function in R for these type of random needs where true random
properties are non-critical. This type of
"draw-a-random-number-and-reset-the-seed" is for instance used in
parallel:::initDefaultClusterOptions() which is called when the
'parallel'...
2018 Mar 04
0
Random Seed Location
Thank you, everybody, who replied! I appreciate your valuable advise! I will move the location of the set.seed() command to after all packages have been installed and loaded.
Best regards,
Gary
Sent from my iPad
> On Mar 4, 2018, at 12:18 PM, Paul Gilbert <pgilbert902 at gmail.com> wrote:
>
> On Mon, Feb 26, 2018 at 3:25 PM, Gary Black <gwblack001 at sbcglobal.net>
>
2018 Mar 04
3
Random Seed Location
On Mon, Feb 26, 2018 at 3:25 PM, Gary Black <gwblack001 at sbcglobal.net>
wrote:
(Sorry to be a bit slow responding.)
You have not supplied a complete example, which would be good in this
case because what you are suggesting could be a serious bug in R or a
package. Serious journals require reproducibility these days. For
example, JSS is very clear on this point.
To your question
>