A factor is a summary variable standing in for a group of items that move
together. This function returns the labels that set_factor_labels()
stored on the object.
Value
The named character vector of factor labels (names are factor IDs), or
NULL if none have been set. See set_factor_labels() to attach them.
Examples
x <- ackwards(sim16, k_max = 4, engine = "pca")
factor_labels(x) # NULL -- none set yet
#> NULL
x <- set_factor_labels(x, c(m4f1 = "Alpha"))
factor_labels(x)
#> m4f1
#> "Alpha"
