Count number of rows within each group
I have a dataframe and I would like to count the number of rows within each group. I reguarly use the aggregate
function to sum data as follows:
I have a dataframe and I would like to count the number of rows within each group. I reguarly use the aggregate
function to sum data as follows: