g_commit_activity: Get a years worth of commit activity grouped by week

View source: R/g_commit_activity.R

g_commit_activityR Documentation

Get a years worth of commit activity grouped by week

Description

Get a years worth commit data summarized by both daily count and weekly total count.

Usage

  g_commit_activity(userorg, repo)

Arguments

userorg

User or organization GitHub name.

repo

Repository name.

Value

A data frame with .

Examples

## Not run: 
require(ggplot2)
g_auth()
options(useragent='ropensci')
jekyll_commit <- g_commit_activity("mojombo","jekyll")
week_sums <- ddply(jekyll_commit,.(week),summarise,week_avg = mean(weekly_count))
ggplot(week_sums,aes(x=week,y=week_avg))+geom_point()+geom_path()+ylab("Weekly commit totals")

## End(Not run)

ropensci/gitr documentation built on May 18, 2022, 9:57 a.m.