as.mic.Rd
This transforms a vector to a new class mic
, which is an ordered factor with valid MIC values as levels. Invalid MIC values will be translated as NA
with a warning.
as.mic(x, na.rm = FALSE) is.mic(x)
x | vector |
---|---|
na.rm | a logical indicating whether missing values should be removed |
Ordered factor with new class mic
#> [1] TRUE# this can also coerce combined MIC/RSI values: as.mic("<=0.002; S") # will return <=0.002#> Class 'mic' #> [1] <=0.002plot(mic_data)barplot(mic_data)freq(mic_data)#> #> #> **Frequency table** #> #> #> | |Item | Count| Percent| Cum. Count| Cum. Percent| #> |:--|:-------|-----:|-------:|----------:|------------:| #> |1 |1 | 3| 33.3%| 3| 33.3%| #> |2 |8 | 2| 22.2%| 5| 55.6%| #> |3 |16 | 2| 22.2%| 7| 77.8%| #> |4 |<=0.128 | 1| 11.1%| 8| 88.9%| #> |5 |>=32 | 1| 11.1%| 9| 100.0%| #> #>