lundi 7 août 2017

R tabulate with if statement

I would like to tabulate a variable in a data frame only if it is below a certain percentile. For example I would like a table of variable X for all rows such that X is below the 95% percentile of that variable. How can I do this....? I would also like to output this to Latex, both the proportion and count variables (i.e. prop.table and table outputs) Thanks!

Aucun commentaire:

Enregistrer un commentaire