实例 R 语言 嵌套函数

x
 
Nested_function <- function(x, y) {
  a <- x + y
  return(a)
}
Nested_function(Nested_function(2, 2), Nested_function(3, 3))
                    

输出结果

[1] 10