From 77846ffb9cfd270c2038f5c73492cd14c269c7a8 Mon Sep 17 00:00:00 2001 From: edzer Date: Wed, 24 Apr 2024 10:49:11 +0200 Subject: [PATCH] fixes #2383 --- R/make_grid.R | 2 +- R/sfc.R | 2 +- man/st_make_grid.Rd | 2 +- man/st_zm.Rd | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/R/make_grid.R b/R/make_grid.R index e02d9371f..8e0bb7955 100644 --- a/R/make_grid.R +++ b/R/make_grid.R @@ -5,7 +5,7 @@ #' @param cellsize numeric of length 1 or 2 with target cellsize: for square or rectangular cells the width and height, for hexagonal cells the distance between opposite edges (edge length is cellsize/sqrt(3)). A length units object can be passed, or an area unit object with area size of the square or hexagonal cell. #' @param offset numeric of length 2; lower left corner coordinates (x, y) of the grid #' @param n integer of length 1 or 2, number of grid cells in x and y direction (columns, rows) -#' @param crs object of class \code{crs}; coordinate reference system of the target of the target grid in case argument \code{x} is missing, if \code{x} is not missing, its crs is inherited. +#' @param crs object of class \code{crs}; coordinate reference system of the target grid in case argument \code{x} is missing, if \code{x} is not missing, its crs is inherited. #' @param what character; one of: \code{"polygons"}, \code{"corners"}, or \code{"centers"} #' @param square logical; if \code{FALSE}, create hexagonal grid #' @param flat_topped logical; if \code{TRUE} generate flat topped hexagons, else generate pointy topped diff --git a/R/sfc.R b/R/sfc.R index 8ca491eed..fac8e51e3 100644 --- a/R/sfc.R +++ b/R/sfc.R @@ -338,7 +338,7 @@ st_geometry_type = function(x, by_geometry = TRUE) { #' @param drop logical; drop, or (`FALSE`) add? #' @param what character which dimensions to drop or add #' @details Only combinations \code{drop=TRUE}, \code{what = "ZM"}, and \code{drop=FALSE}, \code{what="Z"} are supported so far. -#' In case \code{add=TRUE}, \code{x} should have \code{XY} geometry, and zero values are added for \code{Z}. +#' In the latter case, \code{x} should have \code{XY} geometry, and zero values are added for the \code{Z} dimension. #' @examples #' st_zm(st_linestring(matrix(1:32,8))) #' x = st_sfc(st_linestring(matrix(1:32,8)), st_linestring(matrix(1:8,2))) diff --git a/man/st_make_grid.Rd b/man/st_make_grid.Rd index dcc032ee3..9a8e5e744 100644 --- a/man/st_make_grid.Rd +++ b/man/st_make_grid.Rd @@ -24,7 +24,7 @@ st_make_grid( \item{n}{integer of length 1 or 2, number of grid cells in x and y direction (columns, rows)} -\item{crs}{object of class \code{crs}; coordinate reference system of the target of the target grid in case argument \code{x} is missing, if \code{x} is not missing, its crs is inherited.} +\item{crs}{object of class \code{crs}; coordinate reference system of the target grid in case argument \code{x} is missing, if \code{x} is not missing, its crs is inherited.} \item{what}{character; one of: \code{"polygons"}, \code{"corners"}, or \code{"centers"}} diff --git a/man/st_zm.Rd b/man/st_zm.Rd index c398d1062..7929b46fd 100644 --- a/man/st_zm.Rd +++ b/man/st_zm.Rd @@ -20,7 +20,7 @@ Drop Z and/or M dimensions from feature geometries, resetting classes appropriat } \details{ Only combinations \code{drop=TRUE}, \code{what = "ZM"}, and \code{drop=FALSE}, \code{what="Z"} are supported so far. -In case \code{add=TRUE}, \code{x} should have \code{XY} geometry, and zero values are added for \code{Z}. +In the latter case, \code{x} should have \code{XY} geometry, and zero values are added for the \code{Z} dimension. } \examples{ st_zm(st_linestring(matrix(1:32,8)))