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.
Смотрите видео Create a Variable in a Dataframe in R | Mutate Variable in R онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь The Data Hall 26 Июль 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 47 раз и оно понравилось 1 людям.