Skip to content

Commit

Permalink
Update z funs - document @Rdname
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Nov 16, 2020
1 parent 6b93aaa commit 9f47694
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
3 changes: 3 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@ export(slope_matrix_weighted)
export(slope_raster)
export(slope_vector)
export(slope_z_end)
export(slope_z_max)
export(slope_z_mean)
export(slope_z_min)
export(slope_z_start)
export(slope_z_value)
6 changes: 3 additions & 3 deletions R/z.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ slope_z_end = function(x) {
}
coords[, "Z"][nrow(coords)]
}
#' @rdname slope_z_mean #? or value?
#' @rdname slope_z_value
#' @export
slope_z_mean = function(x) {
coords = sf::st_coordinates(x)
Expand All @@ -48,7 +48,7 @@ slope_z_mean = function(x) {
}
mean(coords[, "Z"], na.rm = T)
}
#' @rdname slope_z_max
#' @rdname slope_z_value
#' @export
slope_z_max = function(x) {
coords = sf::st_coordinates(x)
Expand All @@ -57,7 +57,7 @@ slope_z_max = function(x) {
}
max(coords[, "Z"])
}
#' @rdname slope_z_min
#' @rdname slope_z_value
#' @export
slope_z_min = function(x) {
coords = sf::st_coordinates(x)
Expand Down
9 changes: 9 additions & 0 deletions man/slope_z_value.Rd

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

0 comments on commit 9f47694

Please sign in to comment.