Dear list,
I am trying to sample from a list of integers 1:10, but need to exclude one of them. The one to be excluded is a variable called "number" and can take values 1:10. The line below does not work, but shows what I am trying to do. Would somebody be able to help me with the syntax ? anglenumber=sample(1:10, exclude = "number",size=1,replace=TRUE) Thank you very much for a hint. Regards, Juliane Dr. Juliane Struve Environmental Scientist 10, Lynwood Crescent Sunningdale SL5 0BL 01344 620811 __________________________________________________________ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html ______________________________________________ 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.