Skip to content

Commit

Permalink
fixed class for raster
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsigner committed Aug 29, 2024
1 parent ba2a631 commit d7ffc4e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ S3method(has_crs,hr)
S3method(has_crs,steps_xy)
S3method(has_crs,track_xy)
S3method(hr_akde,track_xyt)
S3method(hr_area,RasterLayer)
S3method(hr_area,SpatRaster)
S3method(hr_area,akde)
S3method(hr_area,hr)
S3method(hr_cud,SpatRaster)
Expand Down
2 changes: 1 addition & 1 deletion R/hr_area.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ hr_area.hr <- function(x, units = FALSE, ...) {

#' @export
#' @rdname hr_area
hr_area.RasterLayer <- function(x, level = 0.95, ...) {
hr_area.SpatRaster <- function(x, level = 0.95, ...) {
hr_isopleths(x, level = level)$area
}

Expand Down
4 changes: 2 additions & 2 deletions man/hr_area.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d7ffc4e

Please sign in to comment.