Retrieve or set the object internal name

name(x)

# S3 method for Distribution
name(x)

# S3 method for Distribution
name(x) <- value

# S3 method for Model
name(x)

# S3 method for Distribution
name(x) <- value

# S3 method for Model
setName(model, newName)

Arguments

x

distribution, compositional model

Value

character name of distribution or model

Details

Using functions name and name<- you can read and set the name of a distribution or a compositional model which can be used for your internal needs.

See also

Examples

data(Pi) name(Pi)
#> [1] "pi"
name(Pi) <- "new name" Pi
#> Probability distribution #> * Name:new name #> * Info: #> * Variables:A, B #> * Non-empty items:4 #> NULL