Skip to content

Commit

Permalink
make sure concaveman always returns the same format of data
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 committed Jan 19, 2024
1 parent 30bb18b commit f551f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/concaveman.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
concaveman <- function(points, concavity, threshold) {
if (nrow(points) < 4) return(points)
if (nrow(points) < 4) return(unname(points))
hull <- as.integer(grDevices::chull(points)) - 1L
concaveman_c(points, hull, concavity, threshold)
}

0 comments on commit f551f33

Please sign in to comment.