Note that we will use this library for this post: library(dplyr) ## Warning: package 'dplyr' was built under R version 3.5.1 ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union By the way, loading mosaic, will load dplyr too. One of the major data wrangling activities (in R and elsewhere) is to create a new column in a data …