C Conventions
This book will use the following conventions:
- Generic code:
list(number = 1, letter = "A") - Highlighted code:
dplyr::slice_max() - File paths:
data/sales.csv - R Packages:
tidyverse - Functions:
paste() - Strings:
"psyTeachR" - Numbers:
100,3.14 - Logical values:
TRUE,FALSE - Glossary items: ordinal
- Citations: Wickham (2021)
- Internal links: ChapterĀ 2
- External links: R for Data Science
- Menu/interface options:
New File...
C.1 Webexercises
- Type an integer:
- I am going to learn a lot:
- What is a p-value?
You found some hidden text!
print("You found some hidden code!")## [1] "You found some hidden code!"
C.2 Alert boxes
Informational asides.
Notes to warn you about something.
Notes about things that could cause serious errors.
Try it yourself.
C.3 Code Chunks
# code chunks
paste("psyTeachR", "Tutorials", 2021, sep = " ")## [1] "psyTeachR Tutorials 2021"
C.4 Glossary
| term | definition |
|---|---|
| ordinal | Discrete variables that have an inherent order, such as number of legs |