描述性统计,最有代表性的统计量。

> fivenum(x)
[1] 3 4 5 8 10

#依次为:最小值、下四分位数、中位数、上四分位数、最大值

验证:

> min(x)

[1] 3
> max(x)
[1] 10
> median(x)
[1] 5
> quantile(x)
0% 25% 50% 75% 100%
3 4 5 8 10

 

> which.min(x) #返回索引
[1] 3
> which.max(x)
[1] 1

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2021-07-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案