GithubHelp home page GithubHelp logo

tylermorganwall / adjustedcranlogs Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 3.0 571 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 People

Contributors

tylermorganwall avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

adjustedcranlogs's Issues

Error for sampledpriorpackages ?

I'm not sure why the code here has row()? It should be like below without the row?

sampledpriorpackages =  sample_n(priorpackages, number_to_compare, replace = TRUE)

Adjusted Total Downloads are Unstable

Hey there! I was interested in your package, but when I ran the example code on my package twice I got very different numbers of adjusted total downloads:

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

set.seed(1)
mypkgdownloads <- adj_cran_downloads("updog", 
                                     from = "2018-05-01",
                                     to = "2019-07-11")

mypkgdownloads2 <- adj_cran_downloads("updog", 
                                      from = "2018-05-01",
                                      to = "2019-07-11")

mypkgdownloads$adjusted_total_downloads[nrow(mypkgdownloads)]
mypkgdownloads2$adjusted_total_downloads[nrow(mypkgdownloads2)]

In the first case, I got 2082, in the second I got 1503.

Could this indicate a need to change some of the defaults?

Thanks!
David

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.