If I run this (which is identical to your code except I supplied some random input since your post did not include any) I get no error:
library(vrtest) library(zoo) set.seed(123) x <- rnorm(100) y <- zoo(x) z <- rollapply(y,50, function(x) AutoBoot.test(x,nboot=30, wild="Normal")$AutoBoot.test) On Tue, Aug 27, 2019 at 1:20 AM Subhamitra Patra <subhamitra.pa...@gmail.com> wrote: > > Dear R users, > > I want to use rollapply function from the zoo package with the VR test by > using the following code. > > library(vrtest) > library(zoo) > x <- Data > y <- zoo(x) > z <- rollapply(y,50, function(x) AutoBoot.test(x,nboot=30, > wild="Normal")$AutoBoot.test) > > > But, I am getting some error message, and unable to do that. Is there any > mistake in my code? > > Please help me with this. > > Thank you. > > -- > *Best Regards,* > *Subhamitra Patra* > *Phd. Research Scholar* > *Department of Humanities and Social Sciences* > *Indian Institute of Technology, Kharagpur* > *INDIA* > > [image: Mailtrack] > <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> > Sender > notified by > Mailtrack > <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> > 08/27/19, > 10:48:23 AM > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@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. -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com ______________________________________________ R-help@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.