Re: [R] Looping with looping

2019-04-19 Thread ani jaya
Thank you very much, Dr. Snow, your suggestion helps a lot. Best, Saat On Fri, Apr 19, 2019 at 4:14 AM Greg Snow <538...@gmail.com> wrote: > When the goal of looping is to compute something and save each > iteration into a vector or list, then it is usually easier to use the > lapply/sapply/repl

Re: [R] Looping with looping

2019-04-18 Thread Greg Snow
When the goal of looping is to compute something and save each iteration into a vector or list, then it is usually easier to use the lapply/sapply/replicate functions and save the result into a single list rather than a bunch of global variables. Here is a quick example that does the same computat

[R] Looping with looping

2019-04-18 Thread ani jaya
Dear R community, I'm trying to create a looping to see the effect of number of samples from one dataset. Lets say I have 10 values in a single data frame and I want to see the mean of each sampling let say from 2-9 number of sampling. But I want to do the repetition let say up to 100 for each num