4. Defining vectors. The c()
function can be used to create vectors in R
. For example, the vector [1, 2, 3, 4, 5]
can be defined with the command c(1,2,3,4,5)
.
Define the following vectors:
- ["one", "two", "three"]
- [TRUE, FALSE, TRUE]
- [1, "two", TRUE]