diff --git a/MultiscaleDTM.Rproj b/MultiscaleDTM.Rproj index 32e1c09..17261e9 100644 --- a/MultiscaleDTM.Rproj +++ b/MultiscaleDTM.Rproj @@ -1,7 +1,6 @@ Version: 1.0 ProjectId: e9bb442a-3ced-4688-ba69-800f98e1dcaa - RestoreWorkspace: Default SaveWorkspace: Default AlwaysSaveHistory: Default diff --git a/R/Pfit.R b/R/Pfit.R index 3174718..6e57b84 100644 --- a/R/Pfit.R +++ b/R/Pfit.R @@ -4,7 +4,8 @@ #' @param r DTM as a SpatRaster (terra) or RasterLayer (raster) in a projected coordinate system where map units match elevation/depth units (up is assumed to be north for calculations of aspect, northness, and eastness). #' @param w Vector of length 2 specifying the dimensions of the rectangular window to use where the first number is the number of rows and the second number is the number of columns. Window size must be an odd number. Default is 3x3. #' @param unit "degrees" or "radians". -#' @param na.rm Logical indicating whether or not to remove NA values before calculations. +#' @param na.rm Logical indicating whether or not to remove NA values before calculations.#' +#' @param include_scale logical indicating whether to append window size to the layer names (default = FALSE) #' @param filename character Output filename. Can be a single filename, or as many filenames as there are layers to write a file for each layer #' @param overwrite logical. If TRUE, filename is overwritten (default is FALSE). #' @param wopt list with named options for writing files as in writeRaster diff --git a/man/Pfit.Rd b/man/Pfit.Rd index 6798ff6..f9e1c06 100644 --- a/man/Pfit.Rd +++ b/man/Pfit.Rd @@ -22,7 +22,9 @@ Pfit( \item{unit}{"degrees" or "radians".} -\item{na.rm}{Logical indicating whether or not to remove NA values before calculations.} +\item{na.rm}{Logical indicating whether or not to remove NA values before calculations.#'} + +\item{include_scale}{logical indicating whether to append window size to the layer names (default = FALSE)} \item{filename}{character Output filename. Can be a single filename, or as many filenames as there are layers to write a file for each layer}