> On Jul 5, 2016, at 2:27 AM, g.maub...@weinwolf.de wrote:
>
> Hi guys,
>
> I checked out your example but I can't follow the results.:
>
>> mtcars %>%
> + group_by (am, gear) %>%
> + summarise (n=n()) %>%
> + mutate(rel.freq = paste0(round(100 * n/sum(n), 0), "%")) %>%
> + ungroup()
Hi guys,
I checked out your example but I can't follow the results.:
> mtcars %>%
+ group_by (am, gear) %>%
+ summarise (n=n()) %>%
+ mutate(rel.freq = paste0(round(100 * n/sum(n), 0), "%")) %>%
+ ungroup() %>%
+ mutate(row.tot = sum(n))
Source: local data frame [4 x 5]
am gear
2 matches
Mail list logo