matches | R Documentation |
Count the number of matches, i.e. (near) identical ratings between two elements or constructs. Matches are used as the basis for the calculation of grid indexes.
matches(x, deviation = 0, diag.na = TRUE)
x |
A |
deviation |
Maximal difference between ratings to be considered a match (default |
diag.na |
Whether to set the diagonal of the matrices to |
A list of class org.matches
with:
grid
: The grid used to calculate the matches.
deviation
The deviation parameter.
max_constructs
Maximum possible number of matches across constructs.
max_elements
Maximum possible number of matches across elements.
total_constructs
Total number of matches across constructs.
total_elements
Total number of matches across elements.
constructs
: Matrix with no. of matches for constructs.
elements
: Matrix with no. of matches for elements.
m <- matches(boeker)
# several output options
print(m, index = FALSE, names = FALSE, upper = FALSE)
print(m, output = "C") # construct matches
print(m, output = "E") # element matches
# extract the matrices
m$constructs
m$elements
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.