This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DOT PLOT | |
x <- c(1:100) | |
y <- x*x | |
plot(x, y) | |
# LINE PLOT | |
x <- c(1:100) | |
y <- x*x | |
plot(x, y, type="l") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# LOOPS IN R | |
# For | |
i <- 1 | |
for(i in 1:10){ | |
print(paste("value of iterator: ", i)) | |
} | |
# While | |
i <- 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CURRICULUM FOR INTRODUCTION TO R (DRAFT) | |
Day 1: | |
a) Install R | |
b) Use R as a calculator | |
Day 2: | |
a) Getting help | |
b) Use variables in R | |
c) Understand atomic data types in R |