📅  最后修改于: 2022-03-11 15:00:56.541000             🧑  作者: Mango
# create custom function
addition <- function(x) {
y <- x + 1
print(y)
}
z <- 2
addition(z) # call new function on variable, z
> 3 # R returns the new value created by function