hi all

i have found the follwoing way to choose a random sample by sample size (200):

ten_per_T2000 <- F_T2000_All[sample(nrow(F_T2000_All), 200), ]


 but i wondered if there is a way to choose a sample size by
precentage (10% etc..)

thx

ethan

______________________________________________
[email protected] 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