implement {Q7} | R Documentation |
Implement any Feature for an Object
implement(obj, feat)
obj |
Q7 object (type or instance) |
feat |
Q7 feature or expression |
Q7 object (type or instance)
Type1 <- type(function(num){})
myType1 <- Type1(1) %>% implement({
change_number <- function(){
num + 1
}
})
myType1$change_number()