normalize_counts: Normalize to counts per 1,000 tokens

View source: R/parse_functions.R

normalize_countsR Documentation

Normalize to counts per 1,000 tokens

Description

Normalize to counts per 1,000 tokens

Usage

normalize_counts(counts)

Arguments

counts

Data frame with numeric columns for counts of token, with one row per document. Must include a tot_counts column with the total number of tokens per document.

Value

counts data frame with counts normalized to rate per 1,000 tokens, and tot_counts column removed


browndw/pseudobibeR documentation built on Sept. 14, 2024, 4:34 a.m.