[R] empty matrix
Duncan Murdoch
murdoch.duncan at gmail.com
Mon May 10 16:27:10 CEST 2010
On 10/05/2010 7:15 AM, anderson nuel wrote:
> Dear r-help,
>
> Could you help me to find the function which create an empty matrix.
>
> I use matrix(), but it gives *a single value that is NA and length of this
> matrix is 1.*
Not sure what you mean by an empty matrix, but here's one interpretation:
matrix(numeric(0), 0,0)
This gives a 0 by 0 matrix.
Duncan Murdoch
More information about the R-help
mailing list