Skip to content

Commit

Permalink
don't change name; #648
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Oct 16, 2023
1 parent 1833da7 commit fd8a6d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/spatstat.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ as.owin.stars = function(W, ..., fatal) {
#' @export
st_as_stars.im = function(.x, ...) {
# see https://github.com/r-spatial/stars/issues/648
st_as_stars(as.data.frame(.x, ...))
setNames(st_as_stars(as.data.frame(.x, ...)), "v")
}

as.im.stars = function(X, ...) {
Expand Down

0 comments on commit fd8a6d7

Please sign in to comment.