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.
The following link contains the files used in this video
https://payhip.com/b/6otpk
The following link contains more information on this topic:
https://thedatahall.com/using-mutate-...
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.
Watch video Create a Variable in a Dataframe in R | Mutate Variable in R online without registration, duration hours minute second in high quality. This video was added by user The Data Hall 26 July 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 47 once and liked it 1 people.