Create a Variable in a Dataframe in R | Mutate Variable in R
Aug 5, 2023
This video discusses the base R method and the tidyverse (dplyr) method of creating a variable. We use the mutate function to create variables and create a categorical variable using if_else and case_when functions.
00:00 Intro to Video
0:55 Create Variable using Base R
3:45 Intro to Tidyverse Package
4:40 Create Variable using Mutate Function
9:52 Create Multiple Variables
10:36 Create Categories Using Mutate
11:56 Case_when for Multiple Categories
Website: thedatahall.com
As an Amazon Associate, I earn from qualifying purchases.
Show More Show Less #Vehicle Modification & Tuning


