alloc: Create Object with its Own Memory

Description Usage Arguments Value

View source: R/bigGP.R

Description

alloc is an internal auxiliary function that creates an object of the size of the input with the goal of allocating new memory for use in the C functions used by the package.

Usage

1
alloc(input, inputPos = '.GlobalEnv')

Arguments

input

an object name, given as a character string, giving the name of the object whose size is to be mimiced in creating the output, or the length of the output vector to be created.

inputPos

where to look for the input, given as a character string (unlike get). This can indicate an environment, a list, or a ReferenceClassobject.

Value

A new numeric vector of the appropriate size.


bigGP documentation built on May 30, 2017, 12:22 a.m.