Skip to content

Commit

Permalink
update roxygen documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellmanware committed Jul 24, 2024
1 parent a089771 commit 5a575d2
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 82 deletions.
32 changes: 16 additions & 16 deletions R/calculate_covariates.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@
#' function.
#' @note `covariate` argument value is converted to lowercase.
#' @seealso
#' - [`calc_modis_par`]: `"modis"`, `"MODIS"`
#' - [`calc_koppen_geiger`]: `"koppen-geiger"`, `"koeppen-geiger"`, `"koppen"`
#' - [`calc_ecoregion`]: `"ecoregion"`, `"ecoregions"`
#' - [`calc_temporal_dummies`]: `"dummies"`
#' - [`calc_hms`]: `"hms"`, `"smoke"`
#' - [`calc_gmted`]: `"gmted"`
#' - [`calc_narr`]: `"narr"`
#' - [`calc_geos`]: `"geos"`, `"geos_cf"`
#' - [`calc_sedac_population`]: `"population"`, `"sedac_population"`
#' - [`calc_sedac_groads`]: `"roads"`, `"groads"`, `"sedac_groads"`
#' - [`calc_nlcd`]: `"nlcd"`
#' - [`calc_tri`]: `"tri"`
#' - [`calc_nei`]: `"nei"`
#' - [`calc_merra2`]: `"merra"`, `"MERRA"`, `"merra2"`, `"MERRA2"`
#' - [`calc_gridmet`]: `"gridMET"`, `"gridmet"`
#' - [`calc_terraclimate`]: `"terraclimate"`, `"TerraClimate"`
#' * \code{\link{calc_modis_par}}: "modis", "MODIS"
#' * \code{\link{calc_koppen_geiger}}: "koppen-geiger", "koeppen-geiger", "koppen"
#' * \code{\link{calc_ecoregion}}: "ecoregion", "ecoregions"
#' * \code{\link{calc_temporal_dummies}}: "dummies", "Dummies"
#' * \code{\link{calc_hms}}: "hms", "smoke", "HMS"
#' * \code{\link{calc_gmted}}: "gmted", "GMTED"
#' * \code{\link{calc_narr}}: "narr", "NARR"
#' * \code{\link{calc_geos}}: "geos", "geos_cf", "GEOS"
#' * \code{\link{calc_sedac_population}}: "population", "sedac_population"
#' * \code{\link{calc_sedac_groads}}: "roads", "groads", "sedac_groads"
#' * \code{\link{calc_nlcd}}: "nlcd", "NLCD"
#' * \code{\link{calc_tri}}: "tri", "TRI"
#' * \code{\link{calc_nei}}: "nei", "NEI"
#' * \code{\link{calc_merra2}}: "merra", "MERRA", "merra2", "MERRA2"
#' * \code{\link{calc_gridmet}}: "gridMET", "gridmet"
#' * \code{\link{calc_terraclimate}}: "terraclimate", "TerraClimate"
#' @return Calculated covariates as a data.frame or SpatVector object
#' @author Insang Song
#' @examples
Expand Down
4 changes: 2 additions & 2 deletions R/download.R
Original file line number Diff line number Diff line change
Expand Up @@ -3468,7 +3468,7 @@ download_prism <- function(
#' download_gridmet(
#' variables = "Precipitation",
#' year = c(2023, 2024),
#' directory_to_save = "./data"
#' directory_to_save = "./data",
#' acknowledgement = TRUE,
#' download = TRUE,
#' remove_command = TRUE
Expand Down Expand Up @@ -3610,7 +3610,7 @@ download_gridmet <- function(
#' download_terraclimate(
#' variables = "Precipitation",
#' year = c(2023, 2024),
#' directory_to_save = "./data"
#' directory_to_save = "./data",
#' acknowledgement = TRUE,
#' download = TRUE,
#' remove_command = TRUE
Expand Down
46 changes: 23 additions & 23 deletions R/process.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,28 @@
#' depending on `covariate` value.
#' @param ... Arguments passed to each raw data processing function.
#' @seealso
#' - [`process_modis_swath`]: `"modis_swath"`
#' - [`process_modis_merge`]: `"modis_merge"`
#' - [`process_blackmarble`]: `"blackmarble"`
#' - [`process_koppen_geiger`]: `"koppen-geiger"`, `"koeppen-geiger"`, `"koppen"`
#' - [`process_ecoregion`]: `"ecoregion"`, `"ecoregions"`
#' - [`process_nlcd`]: `"nlcd"`
#' - [`process_tri`]: `"tri"`
#' - [`process_nei`]: `"nei"`
#' - [`process_geos`]: `"geos"`
#' - [`process_gmted`]: `"gmted"`
#' - [`process_aqs`]: `"aqs"`
#' - [`process_hms`]: `"hms"`, `"smoke"`
#' - [`process_narr`]: `"narr"`
#' - [`process_sedac_groads`]: `"sedac_groads"`, `"roads"`, `"groads"`
#' - [`process_sedac_population`]: `"sedac_population"`, `"population"`
#' - [`process_merra2`]: `"merra"`, `"merra2"`
#' - [`process_gridmet`]: `"gridmet"`, `"gridMET`"
#' - [`process_terraclimate`]: `"terraclimate"`, `"TerraClimate"`
#' - [`process_huc`]: `"huc"`
#' - [`process_cropscape`]: `"cropscape"`, `"cdl"`
#' - [`process_prism`]: `"prism"`
#' - [`process_olm`]: `"olm"`, `"openlandmap"`
#' * \code{\link{process_modis_swath}}: "modis_swath"
#' * \code{\link{process_modis_merge}}: "modis_merge"
#' * \code{\link{process_blackmarble}}: "blackmarble"
#' * \code{\link{process_koppen_geiger}}: "koppen-geiger", "koeppen-geiger", "koppen"
#' * \code{\link{process_ecoregion}}: "ecoregion", "ecoregions"
#' * \code{\link{process_nlcd}}: "nlcd", "NLCD"
#' * \code{\link{process_tri}}: "tri", "TRI"
#' * \code{\link{process_nei}}: "nei", "NEI"
#' * \code{\link{process_geos}}: "geos", "GEOS"
#' * \code{\link{process_gmted}}: "gmted", "GMTED"
#' * \code{\link{process_aqs}}: "aqs", "AQS"
#' * \code{\link{process_hms}}: "hms", "smoke", "HMS"
#' * \code{\link{process_narr}}: "narr", "NARR"
#' * \code{\link{process_sedac_groads}}: "sedac_groads", "roads", "groads"
#' * \code{\link{process_sedac_population}}: "sedac_population", "population"
#' * \code{\link{process_merra2}}: "merra", "merra2", "MERRA2"
#' * \code{\link{process_gridmet}}: "gridmet", "gridMET"
#' * \code{\link{process_terraclimate}}: "terraclimate", "TerraClimate"
#' * \code{\link{process_huc}}: "huc", "HUC"
#' * \code{\link{process_cropscape}}: "cropscape", "cdl"
#' * \code{\link{process_prism}}: "prism", "PRISM"
#' * \code{\link{process_olm}}: "olm", "openlandmap"
#' @returns `SpatVector`, `SpatRaster`, `sf`, or `character` depending on
#' covariate type and selections.
#' @author Insang Song
Expand Down Expand Up @@ -446,7 +446,7 @@ process_blackmarble_corners <-
#' list.files("./data", pattern = "VNP46A2.", full.names = TRUE),
#' date = "2024-01-01",
#' tile_df =
#' process_blackmarble_corners(hrange = c(8, 10), vrange = c(4, 5))
#' process_blackmarble_corners(hrange = c(8, 10), vrange = c(4, 5)),
#' subdataset = 3L,
#' crs = "EPSG:4326"
#' )
Expand Down
32 changes: 16 additions & 16 deletions man/calc_covariates.Rd

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

2 changes: 1 addition & 1 deletion man/download_gridmet.Rd

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

2 changes: 1 addition & 1 deletion man/download_terraclimate.Rd

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

2 changes: 1 addition & 1 deletion man/process_blackmarble.Rd

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

44 changes: 22 additions & 22 deletions man/process_covariates.Rd

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

0 comments on commit 5a575d2

Please sign in to comment.