Learn R Programming

compositions (version 1.01-1)

names: The names of the parts

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

## 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 'acomp':
names(x) <- value
## S3 method for class 'rcomp':
names(x) <- value
## S3 method for class 'aplus':
names(x) <- value
## S3 method for class 'rplus':
names(x) <- value
## S3 method for class 'rmult':
names(x) <- value

Arguments

x
an amount/amount dataset
value
the new names of the parts
...
not used, only here for generics

Value

  • a character vector giving the names of the parts

See Also

aplus

Examples

Run this code
data(SimulatedAmounts)
tmp <- acomp(sa.lognormals)
names(tmp)
names(tmp) <- c("x","y","z")
tmp

Run the code above in your browser using DataLab