0

8 つの変数 (x1、x2.. x8) のデータ フレームがあります。

次を使用して箱ひげ図の外れ値を取得したいと思います。

boxplot(dataframe, plot=FALSE)$out

私の望む出力は、データフレームに変数ごとの外れ値をリストすることです。次のように:

variable outlier
x1       outlier1 from x1
x1       outlier2 from x1
x1       outlier3 from x1
x1       outlier4 from x1
x2       outlier1 from x2
x2       outlier2 from x2
x2       outlier3 from x2
.
.
.
x8       outliern from x8

ご協力ありがとうございました、

4

1 に答える 1