dplyr: Pipes

Ғылым және технология

The pipe operator %>% is a special symbol available after you load the dplyr package that lets you use the result of one function as the input to another function that comes after the pipe. Pipes essentially let you chain several functions together, creating a flow or pipeline of operations.
Link to the Kaggle Notebook code used for this video series:
www.kaggle.com/hamelg/dplyr-in-r
View the whole dplyr in R playlist here:
• dplyr: Getting Started
dplyr cheat sheet from RStudio:
www.rstudio.com/wp-content/up...
dplyr documentation:
cran.r-project.org/web/packag...
Follow DataDaft on social media for news and updates:
Twitter: / datadaft
Join the DataDaft Discord to discuss all things data science:
/ discord
* Note for the pipe symbol above, I used the special character large greater than ">" instead of the standard greater than symbol because KZread does not allow the normal symbol in the text description.
** Note: in the video you may notice a warning message when running the root mean squared error calculations. This happened because the vectors of dummy data weren't the same length! When performing math operations with vectors of unequal length, R will wrap back around to the beginning of the shorter vector as many times as necessary to match the length of the longer vector, which is why we still get a result (and only a warning instead of an error.).
#dplyr #rprogramming #datascience

Пікірлер: 13

  • @michaelhudson2375
    @michaelhudson23752 жыл бұрын

    Thanks for sharing your knowledge of R - your channel is a great resource and I have learnt a lot from you. One minor thing in this video, the rownames_to_column() function has been deprecated from dplyr and is now accessible from the tibble package. I hope you keep making these tutorials - thank you!

  • @TheTruth27536
    @TheTruth275362 жыл бұрын

    Thank you and subscribed! This video on pipes makes actual sense and now I get it!

  • @marcosarevalo3463
    @marcosarevalo3463 Жыл бұрын

    very well explained, finally I got it :) Thx

  • @MrPrincemohanty
    @MrPrincemohanty4 жыл бұрын

    Great Explanation

  • @sihaoc3497
    @sihaoc34972 жыл бұрын

    most clear explanation, love it

  • @lucasmaciel800
    @lucasmaciel8003 жыл бұрын

    Good stuff

  • @luiscatalan3309
    @luiscatalan33093 жыл бұрын

    Nice!

  • @muhammadumair5406
    @muhammadumair54063 жыл бұрын

    Great !

  • @robinochieng9244
    @robinochieng92443 жыл бұрын

    thanks

  • @vascoambrosio7798
    @vascoambrosio779811 ай бұрын

    now how do I assign the end result to an object?

  • @hubertg7100
    @hubertg71003 жыл бұрын

    Bro, if U can have some exercise w/ this, that would be next level stuff. Teach in Udemy , I'll sign up!

  • @DataDaft

    @DataDaft

    3 жыл бұрын

    Thanks!

  • @hubertg7100

    @hubertg7100

    3 жыл бұрын

    You have excellent contents and you are an outstanding Tutor. The God of KZread ranks you in my search. I am loving it!!

Келесі