This file contains 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
# seminar 11 | |
# please copy and paste this code to your RStudio | |
# in R, vector is a collection of elements of the same type | |
# for example, all elements should be numbers or words | |
# we can think of vector as sample | |
x <- c(2, 2, 6, 21, 7, 0, 8, -0.5, 2, -11) | |
# the function 'c' creates vector |