Array.new {componentSkeleton}R Documentation

Initialize a new Array instance

Description

Initialize an Array instance, optionally filling it with values.

Usage

Array.new(keys=NULL, files=NULL)

Arguments

keys

If non-NULL, this is a character vector that contains array keys. Duplicated array keys are not allowed.

files

If non-NULL, this is a character vector that contains the files associated to the keys. The character vector must have as many elements as non-NULL keys. If NULL, the array is initialized empty. It is legal to have NULL keys and non-NULL files. In this case the keys will be initialized to interger values (as character strings) starting from 1.

Value

A data frame with two columns, Key and File (both character).

Author(s)

Erkka Valo (erkka.valo@helsinki.fi)


[Package componentSkeleton version 2.0.1 Index]