Use These Data Cleaning Helpers for R from the janitor package
HTML-код
- Опубликовано: 21 авг 2024
- FULL BLOG POST INCLUDING CODE
📍 Full Code at albert-rapp.de...
📍 DataViz Course at arapp.thinkifi...
📍 Data Cleaning Masterclass at data-cleaning....
📍 Free gt e-book at gt.albert-rapp...
📍 {ggiraph} at • How to Make Any ggplot...
📍 Htmltools video at • Use HTML & CSS in R wi...
📈 CREATE EFFECTIVE CHARTS
Check out my video course to create insightful data visualizations with ggplot at arapp.thinkifi...
MORE VIDEOS
📺 Web Development for R Users • Web Development For R ...
📺 ggplot Tutorials • Beautiful Charts with ...
📺 ggplot Remakes • How to Create Divergin...
Subscribe at 👉 / @rappa753
MORE CONTENT
- weekly 3-minute newsletter about R, DataViz and webdev at 3mw.albert-rap...
- LinkedIn at / albert-rapp-9a5b9b28b
#rstats #dataviz #ggplot #dplyr
If you enjoyed this video and want to level up your R skills even further, check out my latest video courses:
📍Data Cleaning Master Class at data-cleaning.albert-rapp.de/
📍Insightful Data Visualizations for "Uncreative" R Users at arapp.thinkific.com/courses/insightful-data-visualizations-for-uncreative-r-users
Everything on tabyl() is blowing my mind. I used to do group_by() %>% count() %>% pivot_wider() to produce these 2x2 tables, but totals was always a bit tricky and needed manual joining or mutates. This could have saved me so much time at work :) but very cool that I learned it now! Excellent tips!
Same here, never knew about tabyl()....and always used groupby piviot wider etc
Thanks , that was very helpful.
Happy to help out :)
A most concise presentation on how to unlock the power of janitor and tabyl. It would allow me to stop using Stata to create crosstabs. Many thanks.
Nice! Glad that you got so much value out of this, Alberto 🥳
Amazing as usual. Can't wait to launch your data cleaning course.
Greetings from Egypt.
❤❤❤❤
Thank you 🤗 happy to have you onboard 🥳
As always,
Value loaded content!
Glad that you think so 🤗
Good morning sir Rapp,
I checked out your blog on this video, the full code was there but no link for one to download the qmd file and above all_ the practice excel data you used.
Can you help with the excel file so following along is in sync and produces same results.
Thanks a million sir
It really helps, thanks
Glad to hear that 🤗
In all programming languages, arguments/parameters are inside functions/methods.
why should I put the data frame / data outside via the pipe!
Tydiverse and pipe are only there to satisfy the dictates of Wickam and his team
Try using a Unix command line. The pipe concept has been there for decades. 🤷🏽♂️ Also have a look at Python or OOO in general. In terms of syntax, there you also have the object you're changing (e.g. a data frame) outside the method call.
@@rappa753 No ! Python, matlab, java, javascript...are clear and easy to understand as R(before Wickam) in the debut :
ggplot2(data =myDataframe, aes...)
lmHeight = lm(height~age, data = ageHeight)
Just to add to what Albert said; Dr. Hadley and his team didn't invent the pipe operator _ they only scooped it from the {Magritte} package.
Its introduction was so successful that the base R team had no option than to invent its version _ thus we have: %>% and |> for R users
Secondly,
Why worry and kick over operational or programming semantics rather than efficiency and effectiveness?
Thus the pipe operator makes code more understandable _ yes!
Thus it make code more clean and maintainable _ yes!
Thus it make code scalable _ yes!
Don't worry over it "weirdness"_ but its "wonders" .
Blessings...
@@Adeyeye_seyison I knew that it is why i said R were easy and simpler Wickam (in one of his presentation he spoke about Magritte)
I WROTE more than 1000 scripts without using the pipe and
Very nice, up until now I used the janitor package solely to clean names :D
If I may ask, what editor theme do you use? I like how the indentation is visually highlighted
Yeah that's my main use case too 😁 I use the rainbow indent option from RSudio
as always nice and useful videos, but it hurts my eyes to see in 2024 the setwd, existing here()
Glad that you find the content useful 😊 how come you dislike my combination of setwd and here? 🤔 Always happy to hear nicer workflows
@@rappa753@rappa753 wait, wait, I didn't see you have a here inside the setwd...checking... in the meantime: how is this better than only here()?
AFAIK, here doesn't change the working directory. So without setwd() I'd have to use here() for all of my file paths. At the end of the day this is not much different though.