View source: R/1-same-factor.R
same_factor | R Documentation |
Compare Factor Similarity Across Lists
same_factor(
...,
method = c("exact", "order"),
levels,
ordered = FALSE,
digits = 3
)
... |
Lists of categorical values (character or factor) to compare |
method |
Character vector of similarity methods. Choose from: "exact", "order" (default: all) |
levels |
Character vector of all allowed levels for comparison |
ordered |
Logical. If TRUE, treat levels as ordered (ordinal). If FALSE, the "order" method is skipped. |
digits |
Number of digits to round results (default: 3) |
An S3 object of type "similar_factor" containing:
scores: Numeric similarity scores by method and comparison
summary: Summary statistics by method and comparison
methods: Methods used for comparison
list_names: Names of compared lists
levels: Levels used for categorical comparison
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.