Skip to main content
R-FOR-DATA5 MIN READ

The dplyr verb deck for fast recall

Recall the core dplyr verbs and when to use them.

When should you use filter()? Use filter() to keep or remove rows based on conditions. If the condition evaluates per row, it is usually a filter. When should you use select()? Use select() to keep, drop, or reorder columns. It changes variables present, not observations present. mutate() or summarise()? Ask whether row count should stay roughly the same or collapse. “I’ll just use distinct() after the join.” Your line First check whether duplicates are valid at the join key; distinct() after a join can hide a grain problem. Using a cleanup verb to mask an upstream relationship issue. It redirects…

Read the full lesson

Sign up free — one personalized lesson every day, matched to your role and goals.

Already have an account? Sign in

← Back to library
Contact us