An Object with Given Attributes
DESCRIPTION:
Returns an object with attributes that are given by all but the first argument.
USAGE
:
structure(.Data,...)
REQUIRED ARGUMENTS
:
.Data
:
any object.
...
:
any number of named arguments, to become the attributes of the object.
VALUE
:
amp;.Data
, with attributes as specified by the remaining arguments.
DETAILS:
This function is used to create an object and assign its attributes in one call; for example, the output of
dump
may contain calls to
structure
.
SEE ALSO:
attributes
,
attr
.
EXAMPLES
:
structure(1:12, dim=c(3, 4)) # creates a matrix