Skip to content

Commit

Permalink
set layer name first
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Sep 30, 2023
1 parent b957c55 commit 3f79d36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/mukey-WCS.R
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,12 @@ mukey.wcs <- function(aoi, db = c('gNATSGO', 'gSSURGO', 'RSS', 'STATSGO', 'PR_SS
# remove tempfile
unlink(tf)

# build RAT
r <- terra::as.factor(r)

# set layer name in object
names(r) <- 'mukey'

# build RAT
r <- terra::as.factor(r)

# and as an attribute
attr(r, 'layer name') <- var.spec$desc

Expand Down

0 comments on commit 3f79d36

Please sign in to comment.