order_by_counts: A function to generate an ordered word count dataframe from a...

Description Usage Arguments Value

View source: R/order_by_counts.R

Description

A function to generate an ordered word count dataframe from a raw vector of words.

Usage

1
order_by_counts(word_vector, weighting = NULL)

Arguments

word_vector

A character vector of words we wish to count and order.

weighting

a vector of weightings to be given to counts of a particular string. Defaults to NULL meaning no weightings will be used.

Value

A data.frame with 'word' and a 'count' fields, with rows ordered by word frequency.


matthewjdenny/CCAS documentation built on May 21, 2019, 1:01 p.m.