Lowest price ever! Learn Generative AI for 48% less!
Get my discount0
Can we create a empty vector?
3 Answers
+ 3
You can append elements like this
x <- c(1)
x <- append(x, 2)
print(x)
+ 1
Simply by
x <- c()
0
Check yours answer by using is.vector() .it is helps to check our vector is true or false