From ed7a23b2de7a4fa0e04ac20dd178e0077cb498d1 Mon Sep 17 00:00:00 2001 From: Michael Sumner Date: Fri, 3 Nov 2023 08:56:54 +1100 Subject: [PATCH] doc typo fix --- R/fasterize.R | 5 +++-- man/fasterize.Rd | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/R/fasterize.R b/R/fasterize.R index ee0944f..6006477 100644 --- a/R/fasterize.R +++ b/R/fasterize.R @@ -1,5 +1,6 @@ make_sf <- function(x, attr = NULL) { - structure(list(geom = x), names = c("geom"), row.names = seq_len(length(x)), sf_column = "geom", class = c("sf", "data.frame" )) + structure(list(geom = x), names = c("geom"), row.names = seq_len(length(x)), + sf_column = "geom", class = c("sf", "data.frame" )) } @@ -18,7 +19,7 @@ make_sf <- function(x, attr = NULL) { #' now works for any polygon vector (sfc, wkt, wkb, geos) or dataframe with a polygon vector #' supported by the wk package handlers. #' -#' @param a polygon vector or data frame object with a geometry column of POLYGON and/or +#' @param sf a polygon vector or data frame object with a geometry column of POLYGON and/or #' MULTIPOLYGON (equivalent) objects. #' @param raster A raster object. Used as a template for the raster output. #' Can be created with [raster::raster()]. diff --git a/man/fasterize.Rd b/man/fasterize.Rd index b9f94b2..16e4afa 100644 --- a/man/fasterize.Rd +++ b/man/fasterize.Rd @@ -14,6 +14,9 @@ fasterize( ) } \arguments{ +\item{sf}{a polygon vector or data frame object with a geometry column of POLYGON and/or +MULTIPOLYGON (equivalent) objects.} + \item{raster}{A raster object. Used as a template for the raster output. Can be created with \code{\link[raster:raster]{raster::raster()}}. The fasterize package provides a method to create a raster object from @@ -36,9 +39,6 @@ any of the features of x. Default is NA.} \item{by}{character. The name of a column in \code{sf} by which to aggregate layers. If set, fasterize will return a RasterBrick with as many layers as unique values of the \code{by} column.} - -\item{a}{polygon vector or data frame object with a geometry column of POLYGON and/or -MULTIPOLYGON (equivalent) objects.} } \value{ A raster of the same size, extent, resolution and projection as the