Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standard functions such as ds.summary should cope with dates #451

Open
tombisho opened this issue Jan 27, 2022 · 1 comment
Open

Standard functions such as ds.summary should cope with dates #451

tombisho opened this issue Jan 27, 2022 · 1 comment
Assignees
Milestone

Comments

@tombisho
Copy link
Contributor

At the moment, ds.summary can only deal with data that is numeric, integer or character. For a vector of dates it throws an error.

A general note on ds.summary is that it should probably rearchitected to be a generic function rather than having a load of if(class==numeric){do this} if(class==char){do that} statements in it. And that is probably relevant for ds.mean too?

It might be useful for users to enable data arithmetic (e.g. difference between 2 dates in days).

@StuartWheater
Copy link
Member

Thanks, it looks like this will require the addition of a new test dataset. Current test datasets which contains dates aren't R date objects.

@StuartWheater StuartWheater self-assigned this Sep 29, 2024
@StuartWheater StuartWheater added this to the v6.4 milestone Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants