New course! Every coder should learn Generative AI!
Try a free lesson0
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