Learn R Programming

cheapr (version 1.4.0)

na_init: Fast NA initialisation

Description

Fast NA initialisation

Usage

na_init(x, n = 0L)

Value

Initialises NA values of the same type as x.

Arguments

x

A vector.

n

Vector length to initialise.

See Also

rep_len_