Sort and clean loadings
clean_loadings(floadings, cutoff = 0, fsort = FALSE, dec = 8, repl = NA)
floadings | Data frame with loadings |
---|---|
cutoff | Show only loadings with (absolute) values above cutoff (default = 0) |
fsort | Sort factor loadings |
dec | Number of decimals to show |
repl | Replace loadings below the cutoff by NA (or "") |
See https://radiant-rstats.github.io/docs/multivariate/full_factor.html for an example in Radiant
result <- full_factor(shopping, "v1:v6", nr_fact = 2) clean_loadings(result$floadings, fsort = TRUE, cutoff = .5, dec = 2)#> RC1 RC2 #> v1 0.96 NA #> v5 -0.92 NA #> v3 0.92 NA #> v6 NA 0.85 #> v4 NA 0.85 #> v2 NA 0.82