[R] error in using sample( )
ehlers at ucalgary.ca
Sun Feb 21 19:45:58 CET 2010
On 2010-02-18 8:48, jxia at math.ucdavis.edu wrote:
> I am using the command
> and I have this error notification
> "Error in sample(c(0,1,2),1,prob=c(0.2,0.3,0.5)):
> unused argument(s)(1,prob=c(0.2,0.3,0.5))
> I don't know what is going wrong. Please give me some suggestions.
> Thank you
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
University of Calgary
More information about the R-help