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
感謝您的支持,