emptyNumeric: emptyNumeric

Description Usage Arguments Details Value Examples

Description

Creates an uninitialized numeric vector (that is, assigns values according to what was allocated in the memory)

Usage

1

Arguments

n

Number of elements

Details

The calculation time is O(1) + time(memory allocation), which is handled internally by R. For small values of n, numeric is faster, but for large values of n, emptyNumeric is much faster.

Value

A numeric vector of length n

Examples

1
vals <- numeric(1e7)

naolsen/emptyInit documentation built on May 23, 2019, 5:07 p.m.