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

[R-Forge #5937] to.period error when name=NULL #2

Closed
joshuaulrich opened this issue Feb 26, 2015 · 0 comments
Closed

[R-Forge #5937] to.period error when name=NULL #2

joshuaulrich opened this issue Feb 26, 2015 · 0 comments
Assignees
Labels

Comments

@joshuaulrich
Copy link
Owner

Submitted by: Joshua Ulrich
Assigned to: Joshua Ulrich
R-Forge link

Reproducible example:

require(xts)
data(sample_matrix)
x <- as.xts(sample_matrix[,'Close'])
y <- to.monthly(x, name=NULL)
Error in to.period(x, 'months', indexAt = indexAt, name = name, ...) :
attempt to set index 4/4 in SET_STRING_ELT

to.period.c:L264 needs to be if(INTEGER(hasVolume)[0]) and to.period.c:L266 needs to be changed similarly, and also needs to reference hasAdjusted instead of hasVolume.

Followups:

Date: 2014-09-22 14:43
Sender: Joshua Ulrich
Fixed in r859.

@joshuaulrich joshuaulrich modified the milestone: Release 0.9-8 Apr 11, 2015
@joshuaulrich joshuaulrich self-assigned this Apr 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant