[R] repeat a function

Michael Bedward michael.bedward at gmail.com
Thu Sep 30 02:34:02 CEST 2010


On 30 September 2010 02:48, Michael Larkin <mlarkin at rsmas.miami.edu> wrote:
> >
> > testdat <- replicate( 50, growth[ sample(nrow(growth), 8, rep=TRUE) ] )
>
> I can't seem to get it to work.  I keep getting the error message of
> "undefined columns selected"
>
> Any advice?

I'd need to know the dimensions of your matrix / data.frame and see
the command that you're using to offer any useful advice.

Michael



More information about the R-help mailing list