how do I get a data frame's variable counts and percentages in R (rpy2)?

26 Views Asked by At

I am running rpy2 in Google Colab and would like to know how to find a data frame's variable counts and percentages.

In Python I would use df.value_counts(), but didn't find an equvalent function in R. There are posts bout finding counts for a specific value but not counts of all the data frame's variables.

0

There are 0 best solutions below