Giter Site home page Giter Site logo

jacobkap / adjustedcranlogs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tylermorganwall/adjustedcranlogs

0.0 1.0 0.0 602 KB

Removes daily shared downloads amongst CRAN packages and re-download/CRAN mirror spikes associated with package updates.

License: Other

R 100.00%

adjustedcranlogs's Introduction

adjustedcranlogs

CRAN_Status_Badge

Overview

adjustedcranlogs is a wrapper around the cranlogs package that removes CRAN-wide shared daily downloads and re-download/CRAN mirror spikes due to package updates.

Installation

# To install: 
install.packages("adjustedcranlogs")

# To install developmental version:
# install.packages("devtools")
devtools::install_github("tylermorganwall/adjustedcranlogs")

Function (there's only one)

  • adj_cran_downloads() Wrapper around cranlogs function cran_downloads(). Works the same, but returns a data frame showing the adjusted downloads, adjusted total downloads, shared minimum downloads, and package update information.

Usage

library(adjustedcranlogs)
library(ggplot2)
library(dplyr)
library(lubridate)

mypkgdownloads = adj_cran_downloads("skpr",from = "2017-08-15", to = "2017-11-15")

mypkgdownloads %>%
  ggplot() + 
  geom_line(aes(x=date,y=adjusted_total_downloads)) +
  geom_line(aes(x=date,y=total_downloads),color="red",linetype="dashed") +
  annotate("text",y=400,x=dmy("01-10-2017"),label="Raw Downloads",color="red") +
  annotate("text",y=50,x=dmy("20-10-2017"),label="Adjusted Downloads",color="black") +
  theme_minimal()

adjustedcranlogs's People

Contributors

jacobkap avatar tylermorganwall avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.