Hi Nia,
Many ways to do something like this, for example:
N<-6
sapply(1:N,function(x) return(sample(1:10,x,TRUE)))
I'll let you work out how to generalize this.
Jim
On Sun, Jun 14, 2015 at 3:06 PM, Bert Gunter wrote:
> Is this homework? Homework is deprecated here.
>
> ?lapply
>
> is one of m
Is this homework? Homework is deprecated here.
?lapply
is one of many possible approaches. If this is not homework, showing your
unsuccessful code would likely lead to a better learning experience for you.
Cheers,
Bert
Bert Gunter
"Data is not information. Information is not knowledge. And kno
2 matches
Mail list logo