Can we create a empty vector? | Sololearn: Learn to code for FREE!

0

Can we create a empty vector?

r

9/17/2021 10:31:59 AM

Amala Yakin

3 Answers

New Answer

+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