Skip to content
Prev 228533 / 398500 Next

choosing a random sample by precentage

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