Module 5 Lecture: Data Manipulation

  Рет қаралды 864

Richard Landers

Richard Landers

Күн бұрын

Пікірлер: 2
@sophiema4137
@sophiema4137 4 жыл бұрын
Dear Richard Landers, I would like to thank you for this great course, and for your kindness to make it accessible for free! I am very grateful for your work and your very clear teaching style! Having started as a complete R beginner I am now slowly approaching my own data (survey data for my master thesis in Political Science). Therefore, I would kindly like to ask you if I can use the "relabelling text" method to convert my string values to scales? Or is there a smarter way to change survey responses to scales? Thank you so much again, Sophie
@richardlanders
@richardlanders 4 жыл бұрын
It depends a bit on the specifics of what you're recoding from and to, but yes, if you're starting with character vectors (e.g., "Agree", "Strongly Agree") to numeric (4,5), then dplyr's recode() inside mutate() is an easy way to do it, e.g., my_tbl % mutate(var1_numeric = recode(var1_txt, "Agree"=4, "Strongly Agree"=5)) dplyr will even automatically set the new variable as a numeric vector, if you recode it completely, so that you don't need to add a data type coercion step afterward (in the above example, var1_numeric will automatically become numeric despite being recoded from character).
Module 5 Debrief: Data Manipulation
45:30
Richard Landers
Рет қаралды 507
Module 7 Lecture: Data Visualization
1:07:05
Richard Landers
Рет қаралды 673
PIZZA or CHICKEN // Left or Right Challenge
00:18
Hungry FAM
Рет қаралды 7 МЛН
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 53 МЛН
Allen Downey - A future of data science
58:29
Posit PBC
Рет қаралды 6 М.
Module 8 Lecture: Analysis of Variance
1:02:23
Richard Landers
Рет қаралды 551
Module 6 Lecture: String Manipulation
1:16:03
Richard Landers
Рет қаралды 513
Module 11 Lecture: Web Scraping and APIs
1:11:30
Richard Landers
Рет қаралды 441
Module 9 Lecture: General and Generalized Linear Models
52:03
Richard Landers
Рет қаралды 699
Module 6 Debrief: String Manipulation
45:30
Richard Landers
Рет қаралды 382
Stanford CS229 I Machine Learning I Building Large Language Models (LLMs)
1:44:31
Module 9 Debrief: General and Generalized Linear Models
45:30
Richard Landers
Рет қаралды 450
Functional Programming in 40 Minutes • Russ Olsen • GOTO 2018
41:35
GOTO Conferences
Рет қаралды 817 М.
Module 8 Debrief: Analysis of Variance
33:41
Richard Landers
Рет қаралды 386
PIZZA or CHICKEN // Left or Right Challenge
00:18
Hungry FAM
Рет қаралды 7 МЛН