get_fwcp | R Documentation |
Get the log Frequency Weighted Competitor Probability (FWCP)
get_fwcp(target_freq, competitors_freq, pad = 0, add_target = FALSE)
target_freq |
Frequency of target word |
competitors_freq |
Numeric vector containing the frequencies of competitors (including itself) |
pad |
Value to add to frequencies before taking log; if your minimum frequency is 0, consider adding a value between 1 and 2; if your minimum frequency is between 0 and 1, consider adding 1 |
add_target |
Boolean; set to TRUE if you want the target frequency added to the denominator; only do this if the target is not already included in the competitor set (e.g., if the target is in the lexicon, it will be captured as its own neighbor, its own cohort, etc.) |
log FWCP
get_fwcp(100, c(10, 50), pad = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.