View source: R/convenience_functions.R
| get_denominator | R Documentation |
For many functions, the denominator of association indices is needed, rather than the final network. This function allows to user to easily extract these.
get_denominator(data, index = "SRI", data_format = "SP", return = "vector")
data |
The association data. |
index |
The association index to use, one of |
data_format |
Character, indicating what form the data is in. |
return |
Character, indicating whether a vector or square matrix should be returned |
Data format can be either "SP" or "GBI", the two main data formats used by "asnipe". Passing index = "SRI" returns the denominator of the simple ratio index, index = "HWI" returns half-weight index, while index = "BII" uses a "both-identified" index.
Either a vector of denominators (if return = "vector") or a square matrix of denominators (if return = "matrix").
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.