Skip to contents

Set the description of a ddf object

Usage

desc(dist) <- value

# S4 method for class 'ddf'
desc(dist) <- value

Arguments

dist

A ddf object, the distribution.

value

A character, new description.

Value

New description text of the ddf object.

Examples

mydist <- unif(8)
print(mydist)
#> Discrete uniform distribution on {1, ..., 8} 
#> 
#> Support:
#> [1] 1 2 3 4 5 6 7 8
#> 
#> Probabilities:
#> [1] 0.125 0.125 0.125 0.125 0.125 0.125 0.125 0.125
desc(mydist) <- "This distribution needs a better description"
print(mydist)
#> This distribution needs a better description 
#> 
#> Support:
#> [1] 1 2 3 4 5 6 7 8
#> 
#> Probabilities:
#> [1] 0.125 0.125 0.125 0.125 0.125 0.125 0.125 0.125