Intro to Quarto
Intro to Quarto
Code chunks (pieces with R code, identified by {r}). Insert code chunks (green button with a C and a + sign) Keyboard shortcut: Alt + Ctrl + I (Alt + Control + i letter)
• R ignores spaces in the code, but you can put them to read better.
• Data types. 1) Numeric: real numbers (1,2, 3.5) in blue;
2) Character: text characters, always between “__” (“Yes”, “woman”), in green;
3) Logical: TRUE or FALSE (also T or F), in blue
• Functions (in black), arguments inside the function (in black)
• Options or values given to arguments (in blue) Result appear after [1]
• Basic operators: + (addition), - (subtraction), * (multiplication), / (division), ^ (to
the power of)