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

Support for date/datetime parsing functions #9

Open
vruusmann opened this issue Dec 8, 2017 · 0 comments
Open

Support for date/datetime parsing functions #9

vruusmann opened this issue Dec 8, 2017 · 0 comments

Comments

@vruusmann
Copy link
Member

The PMML specification supports temporal data types:
http://dmg.org/pmml/v4-3/DataDictionary.html

It should be possible to parse strings into "proper" date/datetime objects using the base::strptime function, and then do basic arithmetic on them (eg. calculating deltas).

For example, it should be possible to do something like that:

as.formula("y ~ I(strptime(x1) - strptime(x2))")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant