apply(x,c(1,3),mean) 指的是沿著第一維度和第三維度計算平均值,所以結果是一個2*4的數(shù)組(第一維度為2,第三維度為4),矩陣中是計算對應位置的平均值。
2016-04-21
最新回答 / qq_PhilicJone3825186
結合成一個向量或列表值。help(c)得到的文檔是:Combine Values into a Vector or ListDescriptionThis is a generic function which combines its arguments.The default method combines its arguments to form a vector. All arguments are coerced to a common type which is the type of th...
2016-04-20