| structure | R Documentation |
structure returns the given object with furtherattributes set.
structure(.Data, ...)
.Data | an object which will havevarious attributes attached to it. |
... | attributes, specified in |
Adding a class"factor" will ensure that numeric codes aregiven integer storage mode.
For historical reasons (these names are used when deparsing),attributes".Dim",".Dimnames",".Names",".Tsp" and".Label" are renamed to"dim","dimnames","names","tsp" and"levels".
It is possible to give the same tag more than once, in which case thelast value assigned wins. As with other ways of assigning attributes,usingtag = NULL removes attributetag from.Data ifit is present.
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)The New S Language.Wadsworth & Brooks/Cole.
attributes,attr.
structure(1:6, dim = 2:3)
Add the following code to your website.
For more information on customizing the embed code, readEmbedding Snippets.
