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

Fixed shift.time issue #268 #273

merged 1 commit into from Oct 6, 2018


Copy link

@pverspeelt pverspeelt commented Sep 30, 2018

added S3method(shift.time, xts) to the namespace.

Calling methods(shift.time) now returns [1] shift.time.xts*

Running the following code will now work for xts objects.

df1 <- data.frame(dates = Sys.time() + 1:10, 
                  values = 1:10)

df1_xts <- xts(df1$values, = df1$dates)
shift.time(df1_xts, n = 60)
The shift.time() generic is exported, but the shift.time.xts() method
is not registered. Add xts S3method for shift.time to the namespace.

Fixes #268.
@joshuaulrich joshuaulrich force-pushed the pverspeelt:268_fix_shift.time branch from 2743ad2 to 7926ef9 Oct 6, 2018
@joshuaulrich joshuaulrich self-assigned this Oct 6, 2018
Copy link

@joshuaulrich joshuaulrich commented Oct 6, 2018

I reworded the commit message to align with the commit messages section of the contributing guide. The Git commit message is much more important to me than the PR message on GitHub. The commit message is part of the repository, and exists independently of the hosting platform (e.g. GitHub, GitLab, Bitbucket, etc), while the PR message is specific to GitHub.

@joshuaulrich joshuaulrich added this to the 0.11-2 milestone Oct 6, 2018
@joshuaulrich joshuaulrich merged commit 7926ef9 into joshuaulrich:master Oct 6, 2018
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
@pverspeelt pverspeelt deleted the pverspeelt:268_fix_shift.time branch Oct 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants