implement: Implement any Feature for an Object

Description Usage Arguments Value Examples

View source: R/core.R

Description

Implement any Feature for an Object

Usage

1
implement(obj, feat)

Arguments

obj

Q7 object (type or instance)

feat

Q7 feature or expression

Value

Q7 object (type or instance)

Examples

1
2
3
4
5
6
7
8
9
Type1 <- type(function(num){})

myType1 <- Type1(1) %>% implement({
    change_number <- function(){
        num + 1
    }
})

myType1$change_number()

Q7 documentation built on Jan. 13, 2021, 10:11 a.m.