Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Rにテーブルのリストがあります。行数はテーブルごとに異なりますが、列数は均一です(22)。各テーブルの各列の最小値、最大値、中央値を計算し、それをベクトルに入れる必要があります。テーブルごとに個別のベクトルが必要です。
lapply(your_list,function(x){apply(x,2,mean)})
、または計算meanするものに応じて置き換え ます。minmaxmedian
mean
min
max
median
apply(x,2,...)行列、配列、またはデータフレームの各列(つまり、2次元)に関数を適用します。 lapply(...)リストの各要素に関数を適用します。
apply(x,2,...)
lapply(...)