zeros: Generate arrays with the given dimenstions.

View source: R/zeros.R

charsR Documentation

Generate arrays with the given dimenstions.

Description

Generate arrays with the given dimenstions.

Usage

chars(...)

FALSEs(...)

NaNs(...)

NAs(...)

ones(..., type = "double")

zeros(..., type = "double")

Arguments

...

the elements specifying the dimension of the array.

type

specifies the return data type as either "int" or "double" (default), used in zeros() and ones().

Value

An array of zeros, ones, NAs, NaNs, empry characters or FALSEs, with the given dimension.

Examples

## Not run: 
zeros(2:3)
ones(2:3, 4)
chars(2:3)
FALSEs(2:3)
NAs(2:3)
NaNs(2:3)
## End(Not run)


arnejohannesholmin/TSD documentation built on April 14, 2024, 5:29 a.m.