Skip to content

Commit

Permalink
Merge pull request #293 from ncss-tech/duperat-wcs
Browse files Browse the repository at this point in the history
Testing fix for #292
  • Loading branch information
brownag authored May 8, 2023
2 parents a4fa84e + ac50a3a commit 92e3524
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions R/mukey-WCS.R
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,8 @@ mukey.wcs <- function(aoi, db = c('gNATSGO', 'gSSURGO', 'RSS', 'STATSGO', 'PR_SS
# build RAT
# NB: unique() takes na.rm argument on terra >1.5-21 <https://github.com/rspatial/terra/issues/561>
uids <- na.omit(terra::unique(r)[[1]])
rat <- data.frame(value = uids,
mukey = uids,
ID = uids)
rat <- data.frame(ID = uids,
mukey = uids)
levels(r)[[1]] <- rat

# set layer name in object
Expand Down

0 comments on commit 92e3524

Please sign in to comment.