Skip to content

Commit

Permalink
specify resulting tibble columns in gsw calc function documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
karpfen committed Jan 15, 2024
1 parent 808989e commit 861fafc
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
3 changes: 2 additions & 1 deletion R/calc_gsw_change.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
#' "extract" or "exactextract". Default: "extract".
#' @param stats_gsw Aggregation function with which the data are combined.
#' Default: "mean".
#' @return A tibble
#' @return A tibble containing the aggregated GSW change indicator. The column
#' name is a concatenation of "global_surface_water_change_" + \code{stats_gsw}.
#' @keywords internal
#' @include register.R
#' @noRd
Expand Down
4 changes: 3 additions & 1 deletion R/calc_gsw_occurrence.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
#' "extract" or "exactextract". Default: "extract".
#' @param stats_gsw Aggregation function with which the data are combined.
#' Default: "mean".
#' @return A tibble
#' @return A tibble containing the aggregated occurrence indicator. The column
#' name is a concatenation of "global_surface_water_occurrence_" +
#' \code{stats_gsw}.
#' @keywords internal
#' @include register.R
#' @noRd
Expand Down
4 changes: 3 additions & 1 deletion R/calc_gsw_recurrence.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
#' "extract" or "exactextract". Default: "extract".
#' @param stats_gsw Aggregation function with which the data are combined.
#' Default: "mean".
#' @return A tibble
#' @return A tibble containing the aggregated recurrence indicator. The column
#' name is a concatenation of "global_surface_water_recurrence_" +
#' \code{stats_gsw}.
#' @keywords internal
#' @include register.R
#' @noRd
Expand Down
4 changes: 3 additions & 1 deletion R/calc_gsw_seasonality.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
#' "extract" or "exactextract". Default: "extract".
#' @param stats_gsw Aggregation function with which the data are combined.
#' Default: "mean".
#' @return A tibble
#' @return A tibble containing the aggregated seasonality indicator. The column
#' name is a concatenation of "global_surface_water_seasonality_" +
#' \code{stats_gsw}.
#' @keywords internal
#' @include register.R
#' @noRd
Expand Down
6 changes: 5 additions & 1 deletion R/calc_gsw_transitios.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
#'
#' @param x A single polygon for which to calculate the GSW statistics.
#' @param global_surface_water_transitions The GSW Transitions data source.
#' @return A tibble
#' @return A tibble with two columns
#' \itemize{
#' \item class: Surface water transition class
#' \item area: Area in ha.
#' }
#' @keywords internal
#' @include register.R
#' @noRd
Expand Down

0 comments on commit 861fafc

Please sign in to comment.