names: The names of the parts

Description Usage Arguments Value Author(s) See Also Examples

Description

The names function provide a transparent way to access the names of the parts regardless of the shape of the dataset or data item.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## S3 method for class 'acomp'
names(x)
## S3 method for class 'rcomp'
names(x)
## S3 method for class 'aplus'
names(x)
## S3 method for class 'rplus'
names(x)
## S3 method for class 'rmult'
names(x)
## S3 method for class 'ccomp'
names(x)
## S3 replacement method for class 'acomp'
names(x) <- value
## S3 replacement method for class 'rcomp'
names(x) <- value
## S3 replacement method for class 'aplus'
names(x) <- value
## S3 replacement method for class 'rplus'
names(x) <- value
## S3 replacement method for class 'rmult'
names(x) <- value
## S3 replacement method for class 'ccomp'
names(x) <- value

          

Arguments

x

an amount/amount dataset

value

the new names of the parts

Value

a character vector giving the names of the parts

Author(s)

K.Gerald v.d. Boogaart http://www.stat.boogaart.de

See Also

aplus

Examples

1
2
3
4
5
data(SimulatedAmounts)
tmp <- acomp(sa.lognormals)
names(tmp)
names(tmp) <- c("x","y","z")
tmp

compositions documentation built on Jan. 5, 2022, 5:09 p.m.