[R] Scalar vs. vector

Thomas W Blackwell tblackw at umich.edu
Tue Apr 8 14:30:24 CEST 2003


Yes, scalars are really trivial vectors.

On Mon, 7 Apr 2003, Chris Fehily wrote:

> 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
>



More information about the R-help mailing list