R语言中sapply函数

R语言中sapply函数。

1、

x=c(1:5)
x
sapply(x,function(x) {x^2})

原文地址:https://www.cnblogs.com/liujiaxin2018/p/14743057.html