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

Add cbind and rbind methods #371

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

jranke
Copy link

@jranke jranke commented Aug 12, 2024

Fixes #311

@Enchufa2
Copy link
Member

Thanks. This PR currently breaks quantities. I'd like to avoid that unless strictly necessary. Did you look into it by any chance?

@jranke
Copy link
Author

jranke commented Aug 13, 2024

Thanks. This PR currently breaks quantities. I'd like to avoid that unless strictly necessary. Did you look into it by any chance?

I had a quick look, but it gets a bit complicated. The proposed method cbind.units is called in errors:::propagate in the case of quantities and there it fails, because not all arguments have units. If the check for this is removed, it still fails, presumably because it does not handle the error attributes. I do not understand the interaction of the packages and classes well enough to solve this.

@Enchufa2
Copy link
Member

No problem. Let's put this on hold then until I find the time to have a look.

Also, apply the full class vector of the first argument for the result.
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

Successfully merging this pull request may close these issues.

cbind and rbind silently drop units
2 participants