Learn R Programming

rinform (version 1.0.2)

copy: Copy

Description

Generic function to perform a deep copy of the distribution.

Usage

copy(d)

Arguments

d

Dist object representing the distribution to be copied.

Value

Dist giving the copy of the distribution.

Examples

Run this code
# NOT RUN {
d <- Dist(c(1, 2, 3, 4))
c <- copy(d)
c

d <- Dist(7)
c <- copy(d)
c
# }

Run the code above in your browser using DataLab