defaultElement {externalVector}R Documentation

Return the default element for a vector object.

Description

For a vector object, this generic returns a length one vector with the default element for the vector as the first (and only) element.

Usage

defaultElement(x)

Arguments

x A vector object.

Value

A length one vector with the default element.

See Also

externalVector-class for the method for this generic for the "externalVector" class.

Examples

defaultElement(1:5)
defaultElement(list(1, 2))

[Package externalVector version 1.0.14 Index]