Dear friends,

I  have a numeric vector composed of 320 numbers.


Now, I want to do resample for 10000 times. I want to get maxium number for 
every trial and get a 10000 maxium numbers.


I have tried to use "boot" package such as follows.


results<-boot(data=nearshore1,statistic=max,R=10000,stype="w")


But, surprising, the results shows that I got 10000 A (A is the maxium number 
in "nearshore1")


It's a puzzle to me. I do not know how to do that. Thank you.


Yichun







        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
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.

Reply via email to