Code Monkey home page Code Monkey logo

tidynhl's Introduction

tidynhl

Lifecycle: experimental R build status

Overview

tidynhl is a user-friendly R package which aims at facilitating data extraction through the NHL API in a ready-to-use tidy format.

Installation

As of now, tidynhl is only an experimental package, thus not released on CRAN.

You can install the experimental version of the package directly form github by running the following command :

remotes::install_github("jplecavalier/tidynhl")

tidynhl's People

Contributors

jplecavalier avatar samperochkin avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

samperochkin

tidynhl's Issues

`tidy_players_stats()` when `players_id` have no NHL played game

The function tidy_players_stats() outputs an error when inputs a player_id for a player that has not played any NHL game.

For a reproducible example, see the player Jared Knight (player_id = 8475743L).

Screen Shot 2021-02-01 at 8 21 00 PM

I would expect maybe an empty data.table as an output?

Improve error message for `player_id` contains NA

I did noticed that we passing a vector of player_id containing at least one NA, we received this error :

Error in tidy_players_meta(players_id = unique(dt_draft$player_id), keep_id = TRUE) :
argument 'players_id' should be a vector of integers

Maybe would be helpful to receive a more descriptive error message.

contribute?

Hi there,
I'd like to learn about NHL and contribute to the code of the repository.

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.