Learn R Programming

LexFindR (version 1.1.0)

get_fw: Get the log Frequency Weight (FW) of a competitor set

Description

Get the log Frequency Weight (FW) of a competitor set

Usage

get_fw(competitors_freq, pad = 0)

Value

FW

Arguments

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

Examples

Run this code
get_fw(c(10, 50), pad = 1)

Run the code above in your browser using DataLab