Select attributes by their score/rank/weights, depending on the cutoff that may be specified by the percentage of the highest ranked attributes or by the number of the highest ranked attributes.
cut_attrs(attrs, k = 0.5)
attrs | A data.frame with attributes' importance. |
---|---|
k | A numeric. For |
Damian Skrzypiec damian.j.skrzypiec@gmail.com and Zygmunt Zawadzki zygmunt@zstat.pl
#> [1] "Petal.Width" "Petal.Length"#> Species ~ Petal.Width + Petal.Length #> <environment: 0x55f4ba7c1738>cut_attrs(attrs = x, k = 1)#> [1] "Petal.Width"