Skip to content

Commit

Permalink
fix always same unout as gArea
Browse files Browse the repository at this point in the history
  • Loading branch information
robitalec committed Mar 13, 2023
1 parent 9d3d23d commit ac637ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/build_polys.R
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ build_polys <- function(DT = NULL,
verticesParam <- formals(adehabitatHR::getverticeshr.estUD)

if (all(names(hrParams) %in% c(names(kernelParam), names(verticesParam)))) {

if (!('unout' %in% names(hrParams))) {
hrParams$unout <- 'm2'
}
kern <- do.call(adehabitatHR::kernelUD,
hrParams[intersect(names(hrParams), names(kernelParam))])
return(do.call(adehabitatHR::getverticeshr,
Expand Down

0 comments on commit ac637ec

Please sign in to comment.