x <- 1:9 y <- c(1,4,62,1,6,3,6,3,6) newText <- "This is R programming" moreText <- c("Hi", "Adding", "Multiple", "Words") letseelogical <- c(TRUE, FALSE, TRUE, FALSE, TRUE, TRUE) COMP1 <- c(6+3i, 2+4i)
Output:
Note : c() is a generic function which combines its arguments
Note: is.vector(x) will check whether the variable is a vector or not
is.vector(x) [1]TRUE