0

Can we create a empty vector?

17th Sep 2021, 10:31 AM
Amala Yakin
3 Answers
+ 3
You can append elements like this x <- c(1) x <- append(x, 2) print(x)
17th Sep 2021, 10:41 AM
Lisa
Lisa - avatar
+ 1
Simply by x <- c()
17th Sep 2021, 10:37 AM
Lisa
Lisa - avatar
0
Check yours answer by using is.vector() .it is helps to check our vector is true or false
17th Sep 2021, 10:39 AM
Amala Yakin