Re: [R] random sampling but with caveats!

2011-09-08 Thread Jean-Christophe BOUËTTÉ
Hi there, It seems you got no answer. Maybe providing a reproducible example would help, as well as expressing your problem in more general terms. I am not an expert in sampling, but I would suggest (as does the help for sample) that you take a look at the sampling package, available on CRAN, and t

[R] random sampling but with caveats!

2011-09-08 Thread Rebecca Ross
Hi, I wonder if someone can help me. I have built a gam model to predict the presence of cold water corals and am now trying to evaluate my model by splitting my dataset into training/test datasets. In an ideal world I would use the sample() function to randomly select rows of data for me so fo