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

do_merge_xts() unnecessarily coerces to REAL when 'x' and 'y' aren't the same type and one isn't returned #421

Open
joshuaulrich opened this issue Jun 19, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@joshuaulrich
Copy link
Owner

do_merge_xts() shouldn't coerce x or y to REAL if they're not the same type and one isn't returned.

lgl <- xts(rep(TRUE, 10), .Date(1:10))
int <- x + 1
# should return logical, but returns double
dbl <- merge(lgl, int, retside = c(TRUE, FALSE))

packageVersion('xts')
## [1] '0.14.0'
@joshuaulrich joshuaulrich added this to the 0.14.1 milestone Jun 19, 2024
@joshuaulrich joshuaulrich self-assigned this Jun 19, 2024
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