-
Notifications
You must be signed in to change notification settings - Fork 2
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
make tfd_irreg
operations more tolerant
#10
Comments
will need modifiying / replacing fun_op to avoid failure on arg-comparison -- for each obs, the op is only defined on the intersection of args... :( |
Not sure it's related, but
works, while
doesn't ... |
now deals with 1-element lists, irregular inputs with NAs. relates to #48 (thx jeff)
ouch, thx. fixed in tidyfun/tidyfun@3e1b8a6 |
see #5, warn about too much irregularity but do it |
"warn about too much irregularity":
|
on further thought: "warn about too much irregularity and do it" will be messy to code and probably still be unreliable. the current implementation (branch 5-NAhandling @ c7e351cf) of e.g. only return a mean function value for args that are present in all functions:
return an empty "tfd_irreg" for completely irregular data without any grid points in common:
or take the mean of all available data at each arg with
@jeff-goldsmith have you come across other issues in this vein? I'm having a hard time coming up with test cases for this. |
Not sure this is exactly the kind of test cases you have in mind, but here are some settings where we'd have varying degrees of overlap in
One wrinkle on whether |
true -- we need to add more doc / warnings for this
i now think operations like this might actually become easier once |
e.g. stuff like
dti$rcst - mean(dti$rcst)
should work, or at leastdti$rcst - mean(dti$rcst, na.rm = TRUE)
The text was updated successfully, but these errors were encountered: