Lluís Revilla
mastodon 4.7.3Bioinformatician 📢 about OSS and #rstats, some analysis 📊 & random thoughts and ideas 🎲
My opinions/comments not those of my employer (Roche)
@DataAngler@vis.social mutate and filter also have the .by argument: df |> summarise(.by = c(species, island), n=n()) |> mutate(.by = species, Pct = n/sum(n))
The only difference is the order TIL that dplyr will warn about grouped operations and further operations that are ungrouped:
From your first example:
summarise() has regrouped the output.
ℹ Summaries were computed grouped by species and island.
ℹ Output is grouped by species.
ℹ Use summarise(.groups = "drop_last") to silence this message.
#rstats @bioconductor@genomic.social Has moved away from Slack to Zulip.
The new url is: https://community-bioc.zulipchat.com/
Edit: People already on the Slack should have received an email as the Slack email was reused to recreate the accounts on Zulip to preserve comments from Slack.