Calmcode - dplyr verbs: introduction

Introduction

1 2 3 4 5 6 7

R has an amazing set of libraries called the tidyverse. It contains a set of packages that play well together. A core library in this set is dplyr which contains verbs to help you analyse data. In this series of videos we'll give a quick overview of them.

For this video you'll need to make sure that tidyverse is installed and that you ran this script beforehand.

library(tidyverse)

# This command makes sure that the chickweight dataframe is clean.
df <- ChickWeight %>% ungroup() %>% as.data.frame()

Once this is a given. You can apply all sorts of simple verbs.

df %>% head()
df %>% tail()
df %>% tail() %>% head(3)