实例 R 语言 调用函数

x
 
my_function <- function() {
  print("Hello World!")
}
my_function()
                    

输出结果

[1] "Hello World!"