View source: R/01-constructor.r
float | R Documentation |
An analogue to integer()
and double()
for preallocation.
float(length = 0, nrow, ncol)
length |
Input data of type integer. |
nrow , ncol |
Number of rows/columns if a matrix return is desired. See details section for more information. |
If both of nrow
and ncol
are specified, then length
is
ignored, and the retor is a matrix. If one (but not the other) of nrow
or ncol
is given, then the function errors. Otherwise, a vector of
length length
is returned.
A float vector/matrix of 0's.
library(float)
float(10)
float(nrow=2, ncol=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.