-
Notifications
You must be signed in to change notification settings - Fork 44
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
FR: Don't error ppp when all coordinates are NA #44
Comments
At the moment x <- c(NA_real_, NA_real_)
y <- c(NA_real_, NA_real_)
ppp(na.omit(x), na.omit(y), xrange = 0:1, yrange = 0:1) |
The two situations are completely different. However, we could tweak |
@baddstats thanks for the reply. I understand the two are different -- this may be a case of a misleading error message, then. See the edit -- the error I receive doesn't imply Now I see that passing |
Experimental code now inserted in |
For the record, |
I've got a situation where I'd like to feed all-
NA
coordinates toppp
(I have a loop where some subsets may be "empty" in the sense of not having any data).The following works just as expected and accomplishes all I want (I later
pixellate
this and get the 0s out that I want)But this is an error:
I don't see a reason for the latter to error given the former works just fine (at worst, throw a warning).
Now, I need to throw a test into my code a la:
Which is considerably more dense/verbose/inscrutable
The text was updated successfully, but these errors were encountered: