1+1
[1] 2
Want to code along? Go to the Data tab of the website and press the DOWNLOAD PRESENTATIONS button. This is presentation1A.
Adding
Subtracting
Multiplication
Division
Exponentiation
Base-2 logarithm
Base-10 logarithm
Character
Numeric
Vector
[1] "1" "2" "3" "4" "5" "hello" "world" "7" "1"
[1] "character"
List
[[1]]
[1] 1
[[2]]
[1] 2
[[3]]
[1] 3
[[4]]
[1] 4
[[5]]
[1] 5
[[6]]
[1] "hello"
[[7]]
[1] "world"
[[8]]
[1] 7
[[9]]
[1] 1
[1] "list"
Vector of numeric
Summing a vector
Mean of vector
The term path
refers to the trajectory you need to follow from the place you are βlocatedβ on your computer to the place you want to work from. When working with Quarto your working directory (wd)
is always the same locations as your Quarto document (is not true for .R scripts!). The wd becomes important when we start loading data in from other places (presentation 2).
NB: These paths are specefic to my computer and the they will be different on your computer.
See current working directory.
"/Users/kgx936/Desktop/HeaDS/GitHub_repos/FromExceltoR/Teachers/Presentations"
Change working directory.
Read excel file from path relative to working directory.
Read excel file from absolute path.