-
Notifications
You must be signed in to change notification settings - Fork 13
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
tex.catwitherror does not work well with vectors #253
Comments
There should probably be some internal loops, such that vector-valued quantities can be dealt with. At present, this fails because the conditionals don't play nice with vectors of `x` and `dx`.
well, it can be used with apply...!
|
That's true, but it cannot be used with
which is a really handy function for adding new columns to data frames based on existing columns. |
I always just use mutate(tex = mapply(tex.catwitherror, val, err)) |
It would be trivial to have a the current non-vectorized version as |
It would be trivial to have a the current non-vectorized version as `tex.catwitherror.scalar` and then have a new `tex.catwitherror` which just calles the implementation with `mapply`. The problem is that currently it is allowed to pass value and error as a two-element vector as the first argument. This would become inconsistent then.
Well, rather the new one would get a different name, wouldn't it?
|
There should probably be some internal loops, such that vector-valued quantities can be dealt with. At present, this fails because the conditionals don't play nice with vectors of
x
anddx
.The text was updated successfully, but these errors were encountered: