v@|kremk @end|ng |rom gm@||@com
Mon Feb 11 23:35:39 CET 2019
I have a data frame with tow variables group and its size.
mydat<- read.table( text='group count
G5 10' , header = TRUE, as.is = TRUE )
I want to select group ID randomly (without replacement) until the
sum of count reaches 40.
So, in the first case, the data frame could be
In other case, it could be
How do I put sum of count variable is a minimum of 40 restriction?
Than k you in advance
I want to select group ids randomly until I reach the
More information about the R-help