I'm doing some data analysis and I wrote set.seed(100
) at the top of my code.
My question is: can I set a random value for the seed? Is there a meaning for a specific value of the seed?
You can use any integer. set.seed()
allows the same random numbers to be used for reproducible results. There is no meaning for any one value. It's just the parameter used by the random sampling algorithm.
Check ?set.seed
for more detail.
If you leave it out you'll still get random values, but they will differ each time.
1 Like
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.