Movatterモバイル変換


[0]ホーム

URL:


rdrr.io

structure: Attribute Specification

structureR Documentation

Attribute Specification

Description

structure returns the given object with furtherattributes set.

Usage

structure(.Data, ...)

Arguments

.Data

an object which will havevarious attributes attached to it.

...

attributes, specified intag = valueform, which will be attached to data.

Details

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.

References

Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)The New S Language.Wadsworth & Brooks/Cole.

See Also

attributes,attr.

Examples

structure(1:6, dim = 2:3)

What can we improve?

R Package Documentation

Browse R Packages

We want your feedback!

Note that we can't provide technical support on individual packages. You should contact the package authors for that.

 
Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, readEmbedding Snippets.

Close

[8]ページ先頭

©2009-2026 Movatter.jp