2023-10-18
It can be written as %>% or |>
Makes your code more clear
Use a keyboard shortcut to put it in a script!
In my mac is Ctrl+Shift m ## Why?
With the pipe operator we can chain multiple functions together.
Calculate mean total points grouped by playoffs.
File format for reports.
It combines R code and text.
It generates documents (pdf, word, html).
Line 11 is text (level 2 header).
Line 15 is regular text.
Lines 17-19 are R code
R code chunks appear between 3 backticks (`).
When we run the file, R runs all the code inside this chunks and puts the output in the final document.
Ctrl+Shift+i inserts a code chunk.
Outside the tags, your can use markdown