Giter VIP home page Giter VIP logo

mripr's People

Contributors

zander-gordan-noaa avatar zandergordan avatar

Stargazers

 avatar

Watchers

 avatar  avatar

mripr's Issues

Refactor calculation functions

Currently, processing the raw data, and then performing calculations/estimations, is bundled together in a single function. This is not desirable behavior and needs to be refactored into 2 separate functions.

Improve catch calculation API

Currently, the API for the catch calculations leaves a lot to be desired. Things that could be improved:

  • The first argument should be an R data.frame created by the data loader function, not a path to a data directory.
  • the behavior of the domain argument should be adjusted to match the defaults of the web query. In particular, annual, US by sub-region, all modes combined and all areas combined should be assumed unless otherwise specified. The current default that common = NULL implies all species is good, and in fact is probably an improvement of the catch time series web tool.
  • the Domain column in the returned data.frame is not useful. The fields used to specify the domain should be included separately in the returned object, as is standard practice in dplyr::group_by() aggregations.

Create .Rbuildignore

.Rbuildignore needs to be defined such that extraneous files in the current repo will not interfere with R's package-building utilities.

Add data loading script

This should be a brief wrapper around something like:

LoadRDS()

The purpose of which is to check some cached information about when the data in the .rds was downloaded, compare that to what is currently on the MRIP FTP site (if possible, ie. If there is internet connection), and download updated versions of the data if available.

Change data storage

Currently the raw csv data is stored in inst/extdata, when we should be storing the processed data in data/

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.