How to use the pipe operator in dplyr

  Рет қаралды 1,586

Quant Psych

Quant Psych

Күн бұрын

Пікірлер: 7
@candicekoolhaas4343
@candicekoolhaas4343 2 жыл бұрын
I hope whatever university you work at is paying you more than enough. Your stats videos are the best and your personality/delivery is awesome.. you make stats fun!
@rayray0313
@rayray0313 2 жыл бұрын
This is great stuff. Thanks for sharing!
@Fringer15
@Fringer15 2 жыл бұрын
Can you do a Video about Multilevel Regression in R? package(lme4)? Especially about the way to test robustness and things like R^2? All the best 🤙🏼
@pipertripp
@pipertripp Жыл бұрын
R now has a native pipe (R 4.1+), |> which you can setup in R Studio under Global Options -> Code -> Editing (it's a checkbox, 4th from top). I suppose the only real advantage of it is that you don't need to import the magrittr package to use pipes now. I always use keyboard short cut (the one you mentioned) so no savings on typing, but the native pipe is represented by fewer characters, for whatever it's worth.
@QuantPsych
@QuantPsych Жыл бұрын
I've tried switching to the native pipe, but have two problems with it: (1) it requires R > 4.1, which would really screw up some users of flexplot, and (2) if I remember right, there's no way to reference the dataset as there is with magrittr's pipe (e.g., a %>% function(p, q, .)).
@pipertripp
@pipertripp Жыл бұрын
@@QuantPsych ah, interesting about '.', I just tried it myself and confirmed what you're saying. gss_cat |> lm(rincome ~ age, data=.) fails but gss_cat %>% lm(rincome ~ age, data=.) works just fine (the model won't be winning any nobels or kaggle competitions any time soon, sadly).
@pipertripp
@pipertripp Жыл бұрын
I learned that with native pipes, instead of using '.' you use '_' to reference the piped object.
Recoding and reverse coding variables in dplyr
17:45
Quant Psych
Рет қаралды 3,5 М.
What statistics teachers get wrong!
28:48
Quant Psych
Рет қаралды 9 М.
Try Not To Laugh 😅 the Best of BoxtoxTv 👌
00:18
boxtoxtv
Рет қаралды 6 МЛН
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 161 МЛН
When mom gets home, but you're in rollerblades.
00:40
Daniel LaBelle
Рет қаралды 92 МЛН
啊?就这么水灵灵的穿上了?
00:18
一航1
Рет қаралды 98 МЛН
Introducing the Pipe Operator in R
4:24
Duke Center for Computational Thinking
Рет қаралды 12 М.
Why Rust is NOT a Passing Fad...
8:54
Travis Media
Рет қаралды 41 М.
Testing normality is pointless. Do this instead
22:57
Quant Psych
Рет қаралды 9 М.
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
pixegami
Рет қаралды 282 М.
dplyr: Pipes
6:17
DataDaft
Рет қаралды 7 М.
How to Visualize Data (Part 1)
21:15
Quant Psych
Рет қаралды 2,4 М.
dplyr tutorial | how to use dplyr pipe operator | R Programming tutorial
6:04
Data Science Tutorials
Рет қаралды 23 М.
It's lonely being a statistician :(
19:53
Quant Psych
Рет қаралды 2,6 М.
What statisticians get wrong!
19:46
Quant Psych
Рет қаралды 3,1 М.
Try Not To Laugh 😅 the Best of BoxtoxTv 👌
00:18
boxtoxtv
Рет қаралды 6 МЛН