collapse_date: Collapses a data.frame of word counts by date

Description Usage Arguments Value Examples

View source: R/collapse_date.R

Description

Takes a table of word counts (produced by extract_commits and then modified by add_word_counts_table) and collapses the word counts by date.

Usage

1
collapse_date(commit.table, range = c(-4000, 10000))

Arguments

commit.table

Data.frame of commits (e.g. produced by drop_interday).

range

Numeric vector of two elements that specifies the upper/lower bounds of word counts. Anything outside this range is considered an outlier and is dropped.

Value

A data.frame containing dates and the corresponding counts for new words, deleted words, and net additions.

Examples

1
2
3
a <- extract_commits(repo="~/repositories/project/")
a <- add_word_counts_table(a,repo="~/repositories/project/")
b <- collapse_date(a)

tcspears/gitwords documentation built on June 9, 2021, 1:34 a.m.