Thank David and Jim. I got it. ----- A R learner. -- View this message in context: http://r.789695.n4.nabble.com/sample-and-rearrange-tp2222747p2223872.html Sent from the R help mailing list archive at Nabble.com.