Inter Quartile Ranges
iqrs.Rd
Computes the IQR magnitude of a vector
Arguments
- x
A vector of values
- na.rm
Logical. If `TRUE`, any `NA` and `NaN`'s are removed from `x` before the median and quantiles are computed.
Examples
iqrs(stats::rchisq(100, 2))
#> [1] 0.242837647 0.010771850 -0.475713549 -0.001859261 0.631319052
#> [6] 0.763499170 -0.572972124 0.613175000 -0.500534371 -0.217123021
#> [11] 0.332701111 1.991906263 -0.618819392 -0.397586830 -0.630428692
#> [16] 0.123326744 -0.004442241 -0.371506890 4.175449766 -0.090509621
#> [21] -0.160184150 -0.634683559 0.246622700 -0.531923329 0.062846741
#> [26] 0.920810553 -0.409690075 0.313111183 10.339171609 0.773575688
#> [31] 0.630297198 -0.505494825 0.413820413 1.099057062 0.147041096
#> [36] 0.281783721 0.086850143 -0.151136509 -0.414553577 -0.142898340
#> [41] 1.815576908 0.120242043 0.097350746 -0.329333380 -0.089730670
#> [46] -0.110067725 -0.214246145 -0.439919822 0.400977251 -0.009673444
#> [51] -0.088326789 1.928174668 0.306677358 0.862154758 1.075057007
#> [56] 0.651700009 1.257493166 2.760007000 0.078767314 -0.114269441
#> [61] 2.186840973 1.003621201 -0.370026159 -0.036105272 -0.300451948
#> [66] -0.278113950 -0.510188798 0.503071334 0.149543899 0.024975052
#> [71] -0.348589572 1.326189886 -0.385921505 0.660794473 -0.547124971
#> [76] -0.363201442 4.269184186 5.273606975 4.436458407 -0.409564705
#> [81] 1.918135829 -0.487428674 -0.088367694 -0.519368016 -0.505273954
#> [86] -0.039310982 -0.397022122 -0.220421933 -0.345171977 4.059079843
#> [91] -0.132803840 -0.255374759 1.528847260 -0.424216457 0.773646037
#> [96] -0.144314388 0.103496859 1.550962945 -0.034326312 0.001859261