« Because it's Friday: The creation of the universe, in paint and salt | Main | The palettes of Earth »

September 06, 2016


Feed You can follow this conversation by subscribing to the comment feed for this post.

A bit simpler code, which may be important to those who are new in R:

bank %>%
mutate(condition = Expense > 40) %>%
group_by(CardID) %>%
summarize(over_spend = sum(condition))

Thanks bijou4.

For SAS users not familiar with R, you can install and load the package "dplyr" to use "%>%" as an operator in bijou4's example.

In my case I avoided using 3rd party packages.

The comments to this entry are closed.

Search Revolutions Blog

Got comments or suggestions for the blog editor?
Email David Smith.
Follow revodavid on Twitter Follow David on Twitter: @revodavid
Get this blog via email with Blogtrottr