clone: Copy an R6 class object

View source: R/utility.R

cloneR Documentation

Copy an R6 class object

Description

Copy an R6 class object

Usage

clone(x, deep = TRUE)

Arguments

x

R6 class object

deep

default TRUE; TRUE means deep copy, i.e. copied object is unlinked with the original one.

Value

identical but unlinked R6 object

Examples

data("dataset")
clone(dataset)

ChiLiubio/microeco documentation built on July 12, 2024, 9:35 a.m.