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

Fixed issue with NA values in raster #14

merged 24 commits into from Apr 25, 2018


Copy link

This was producing an error:

levs <- c(0:5, 7:23)
ras <- raster(extent(0, 3, 0, 2), vals = c(NA, 1, 3, 5, 8, 9), res = 1)
levels(ras) <- data.frame(ID = levs, Name = LETTERS[1:23])
Plot(ras, new = TRUE)

> Error in if (isFac) { : missing value where TRUE/FALSE needed 

It is now solved, at least in this particular case.

@eliotmcintire eliotmcintire merged commit 4d26fdd into PredictiveEcology:master Apr 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

4 participants