[R] choose randomly
Jim Lemon
drj|m|emon @end|ng |rom gm@||@com
Wed Dec 18 21:37:49 CET 2019
Hi Medic,
mydata$Temperature[sample(1:N,N)
should do the trick. You will just get a pseudo-randomly shuffled set
of the same values.
Jim
On Thu, Dec 19, 2019 at 7:34 AM Medic <mailiPadpost using gmail.com> wrote:
>
> Variable temperature:
> mydata$temperature
> has N values.
> With what code to сhoice (without return) n values from them RANDOMLY?
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list