structure
An Object with Given Attributes

Description

Returns an object with attributes given by all but the first argument.

Usage

structure(.Data, ...)

Arguments

.Data any object.
... any number of named arguments, to become the attributes of the object.

Details

This function is used to create an object and assign its attributes in one call; for example, the output of dump might contain calls to structure.
Value
returns .Data, with attributes as specified by the remaining arguments.
See Also
attributes, attr.
Examples
structure(1:12, dim=c(3, 4)) # creates a matrix 
Package base version 6.1.1-7
Package Index