word_stats: Function to compute summary statistics (called by the shell...

Description Usage Arguments Value Examples

View source: R/word_stats.R

Description

Function to compute summary statistics (called by the shell script)

Usage

1
word_stats(date = NULL, repo = getwd(), netOnly = TRUE)

Arguments

date

(optional) character vector of dates, can either be of length 1, 2, or left unspecified. If length(date)==1, then the summary statistics will include all commits from that day until the latest commit. If length(date)==2, then date will be treated as a range, and the summary statistics will include all commits within that range. If date is left unspecified, then the summary statistics will include all commits in the repository.

repo

(optional) repo (optional) character string giving the relative or absolute path to the git repository. If left unspecified, the current working directory will be used as the repo.

netOnly

(optional) logical to specify whether only net additions/modifications should be reported. Set to TRUE by default

Value

Matrix of summary statistics for word counts

Examples

1
2
3
4
5
word_stats()
word_stats(date="2015-01-01")
word_stats(date="2015-01-01",repo="~/repositories/project/")
word_stats(date=c("2015-01-01","2015-02-20"))
word_stats(date=c("2015-01-01","2015-02-20"),repo="~/repositories/project/")

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