powered by
A symbolic vector is represented by VecBasic S4 class. Vector and V are constructors of VecBasic.
VecBasic
Vector
V
Vector(x, ...)V(...)
V(...)
A VecBasic.
R objects.
There are some differences between Vector and V.
For double values, V will check whether they are whole number, and convert them to integer if so. Vector will not.
V does not accept "non-scalar" arguments, like Vector(c(1,2,3)).
Vector(c(1,2,3))
a <- S("a") b <- S("b") Vector(a, b, a + b, 42L) Vector(list(a, b, 42L)) Vector(1,2,a) V(1,2,a)
Run the code above in your browser using DataLab