Skip to content

Commit

Permalink
fixes #717
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Oct 9, 2024
1 parent 3b3527a commit a588913
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/raster.R
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,8 @@ st_as_raster = function(x, class, ...) {
if (!any(is.na(z))) {
if (is.character(z)) {
names(b) = z
} else if (inherits(z, c("POSIXt", "Date"))) {
time(b) = z
} else {
names(b) = paste0(third, z)
}
Expand Down

0 comments on commit a588913

Please sign in to comment.