Skip to content
Prev 285250 / 398502 Next

Error in apply(x2, 1, diff) : dim(X) must have a positive length

Yes, I just checked out the bootstrap package: the problem is that it
passes vectors (not matrices) to your function and thats why you get
the error you do. Just use diff() instead of apply(,, diff) in your
function and you'll be fine.

Michael
On Mon, Feb 13, 2012 at 12:48 PM, hithit168 <ccchristy at live.com> wrote: