#Atomic vector of type character.
print("abc");
#atomic vector of type datatype.
print("12.5");
#atomic vector of type integer.
print("63L")
#atomic vector of type logical.
print(TRUE)
#atomic vector of type complex.
print("2+3I")
#atomic vector of type row.
print(character to row("hello"))
#modifying vectors.
#create two vectors.
vector1 <- c(3,8,4,5,0,11)
vector2 <- c(4,11,0,8,1,2)
#vector addition.
addition.RESULT <- vector1+vector2
print(addition.RESULT)
#vector subtraction.
subtraction.RESULT <- vector1-vector2
print(subtraction.RESULT)
#vector multiplication.
multiplication.RESULT <-vector1*vector2
print(multiplication.RESULT)
#vector division.
division.RESULT <- vector1/vector2
print(division.RESULT)
To embed this project on your website, copy the following code and paste it into your website's HTML: