20190427-R语言循环函数sweep
2019-04-27 本文已影响0人
天空的小白
-Usage
sweep(x, MARGIN, STATS, FUN = "-", check.margin = TRUE, ...)
对数组的某一个或某几个维度减去(或FUN指定的操作)STATS
-Arguments
STATS
the summary statistic which is to be swept out.
check.margin
如果为TRUE(默认值),则警告STATS的长度或尺寸是否与x的指定尺寸不匹配
-Example
A
rescaleA
rescaleA2
rescaleA3