A function to generate an ordered word count dataframe from a raw vector of words.
order_by_counts(word_vector, weighting = NULL)
A character vector of words we wish to count and order.
a vector of weightings to be given to counts of a particular string. Defaults to NULL meaning no weightings will be used.
A data.frame with 'word' and a 'count' fields, with rows ordered by word frequency.