Closed llrs closed 6 years ago
To subset a dataframe for a group: explanation: tapply(pheno, batch_names(i), sum)
tapply(pheno, batch_names(i), sum)
Used in evaluate_num.R and in evaluate_cat.R but not in evaluate.R (where it is more important.
evaluate_num.R
evaluate_cat.R
evaluate.R
Also use tapply inside apply(pheno, 2, function(x){tapply(x,...
tapply
apply(pheno, 2, function(x){tapply(x,...
It is fast as is
To subset a dataframe for a group: explanation:
tapply(pheno, batch_names(i), sum)