【发布时间】:2013-08-27 21:37:39
【问题描述】:
我有一个包含 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
感谢您的支持,
【问题讨论】:
标签: r dataframe boxplot outliers