4 Introduction

R is well-suited to a functional style of programming, which means you’ll often find yourself solving problems by applying various functions. For example, think about how you manipulate a tibble by applying a series of dplyr verbs until you arrive at the result you want.

Because of this, it’s important to understand how functions work in R. The following chapters assume you already have experience writing functions in R, and immediately dive into some different types of functions: vector, scalar, predicate, and anonymous.