| Line 1... |
Line 1... |
| 1 |
% File src/library/base/man/structure.Rd
|
1 |
% File src/library/base/man/structure.Rd
|
| 2 |
% Part of the R package, https://www.R-project.org
|
2 |
% Part of the R package, https://www.R-project.org
|
| 3 |
% Copyright 1995-2025 R Core Team
|
3 |
% Copyright 1995-2026 R Core Team
|
| 4 |
% Distributed under GPL 2 or later
|
4 |
% Distributed under GPL 2 or later
|
| 5 |
|
5 |
|
| 6 |
\name{structure}
|
6 |
\name{structure}
|
| 7 |
\title{Attribute Specification}
|
7 |
\title{Attribute Specification}
|
| 8 |
\usage{
|
8 |
\usage{
|
| Line 20... |
Line 20... |
| 20 |
\description{
|
20 |
\description{
|
| 21 |
\code{structure} returns the given object with further
|
21 |
\code{structure} returns the given object with further
|
| 22 |
\link{attributes} set.
|
22 |
\link{attributes} set.
|
| 23 |
}
|
23 |
}
|
| 24 |
\details{
|
24 |
\details{
|
| 25 |
Adding a class \code{"factor"} will ensure that numeric codes are
|
25 |
Adding a class \code{"factor"} will ensure that numeric codes are
|
| 26 |
given integer storage mode.
|
26 |
given integer storage mode.
|
| 27 |
|
27 |
|
| 28 |
For historical reasons (these names are used when deparsing),
|
28 |
The historical feature to rename
|
| 29 |
attributes \code{".Dim"}, \code{".Dimnames"}, \code{".Names"},
|
29 |
attributes \code{".Dim"}, \code{".Dimnames"}, \code{".Names"},
|
| 30 |
\code{".Tsp"} and \code{".Label"} are renamed to \code{"dim"},
|
30 |
\code{".Tsp"} and \code{".Label"} is deprecated since \R version 4.7.0.
|
| 31 |
\code{"dimnames"}, \code{"names"}, \code{"tsp"} and \code{"levels"}.
|
- |
|
| 32 |
|
31 |
|
| 33 |
It is possible to give the same tag more than once, in which case the
|
32 |
It is possible to give the same tag more than once, in which case the
|
| 34 |
last value assigned wins. As with other ways of assigning attributes,
|
33 |
last value assigned wins. As with other ways of assigning attributes,
|
| 35 |
using \code{tag = NULL} removes attribute \code{tag} from \code{.Data} if
|
34 |
using \code{tag = NULL} removes attribute \code{tag} from \code{.Data} if
|
| 36 |
it is present.
|
35 |
it is present.
|