Skip to content
Prev 30276 / 398506 Next

Scalar vs. vector

Do these statements yield identical types of objects?
   x = 3
and
   y = c(3)

That is, intrinsically, is x, like y, a vector of length one, but created 
with abbreviated syntax?

More simply: Are scalars really trivial vectors?

Thanks.
-chris