0
I am working with 4 data frames (W
, X
, Y
and Z
) that have the same number of variables. Factor (column/variable) 11 was classified into 3 different levels (1, 2, 3). I need to find out how many times each of these levels repeats in this Column 11 in each of the data.frames.
I believe that the most ideal package to work with this type of data manipulation is dplyr, but I’m not able to assemble the code.
I think the function
table()
can help you:table(W$Coluna11)
– Willian Vieira
If you only need this information I recommend using the same table. If you want the answer as a data.frame to use later (for a chart, Join or for a better print) then the
dplyr
is a good option too.W %>% count(Coluna11)
would be your solution.– Jorge Mendes