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

where.min() problem with negative value present #1634

Closed
mdsumner opened this issue Oct 30, 2024 · 1 comment
Closed

where.min() problem with negative value present #1634

mdsumner opened this issue Oct 30, 2024 · 1 comment

Comments

@mdsumner
Copy link
Contributor

create a simple raster in memory and make one negative value then where.min fails to find a result.

library(terra)
v <- volcano; v[1] <- -1
where.min(rast(v))
     layer cell value
Warning message:
In cbind(i, m) :
  number of rows of result is not a multiple of vector length (arg 1)
@rhijmans
Copy link
Member

Thank you, fixed.

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

No branches or pull requests

2 participants