Giter Club home page Giter Club logo

grates's People

Contributors

timtaylor avatar

Stargazers

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

Watchers

 avatar  avatar

grates's Issues

Improve scales

Current implementations are very minimal and leave a lot to be desired (e.g. #17). They really should be classed as "experimental" until developed more.

recycle length 1 inputs

I.e. the following should not error

library(grates)
yearweek(2002L,1:2)
#> Error in yearweek(2002L, 1:2): `year` and `week` must be the same length.

Created on 2023-03-02 with reprex v2.0.2

Investigate integer dates

This would be useful for downstream {incidence2} package but it may be better to just use IDates from {data.table}.

Better constructor api

The current constructors are a little weird in that they want stored as counts from the unix epoch which is the internal representation of grates object. Perhaps better constructors would allow more intuitive specification:

instead of

isoweek(0L)

it would be nice to write

isoweek(year = 1970, week = 1)

perhaps the current constructors would be provided as minimal low level ones and renamed with a new_ prefix. This way they are still provided in case useful to other developers. E.g.

new_isoweek(0L)

Failing on old R release (GitHub actions)

Tests are currently failing on GitHub actions for the the old release version - R 4.1.3 (2022-03-10) on Ubuntu.

Am I using any new functionality somewhere in my tests or is something else causing this???

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.