clone.Q7instance: Clone an Instance

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Clone an Instance

Usage

1
2
## S3 method for class 'Q7instance'
clone(inst, deep = TRUE, ...)

Arguments

inst

Q7 object instance

deep

to copy nested object instances recursively; Boolean

...

dot-dot-dot

Value

Q7 object instance

Examples

1
2
3
4
5
6
7
8
9
Type1 <- type(function(num){
  print_num <- function(){
    base::print(num)
  }
})
myType1 <- Type1(1)
myType1$print_num()
myType1_clone <- clone(myType1)
myType1_clone$print_num()

iqis/foo documentation built on June 7, 2020, 5:15 a.m.