Skip to content

Commit 8b53253

Browse files
committed
remove duplicate alias
1 parent f60f067 commit 8b53253

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

R/sp.R

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ Polygons2POLYGON = function(PolygonsLst) {
237237

238238
#' @name as
239239
#' @rdname coerce-methods
240-
#' @aliases coerce Spatial sf-method
240+
#' @aliases Spatial sf-method
241241
setAs("Spatial", "sf", function(from) st_as_sf(from))
242242

243243
#' @name as
@@ -247,7 +247,7 @@ setAs("Spatial", "sfc", function(from) st_as_sfc(from))
247247

248248
#' @name as
249249
#' @rdname coerce-methods
250-
#' @aliases coerce sf Spatial-method
250+
#' @aliases coerce Spatial-method
251251
setAs("sf", "Spatial", function(from) {
252252
if (!requireNamespace("sp", quietly = TRUE))
253253
stop("package sp required, please install it first")
@@ -259,7 +259,7 @@ setAs("sf", "Spatial", function(from) {
259259

260260
#' @name as
261261
#' @rdname coerce-methods
262-
#' @aliases coerce sfc Spatial-method
262+
#' @aliases coerce Spatial-method
263263
setAs("sfc", "Spatial", function(from) as_Spatial(from))
264264

265265
# create empy class
@@ -273,7 +273,6 @@ setAs("XY", "Spatial", function(from) as(st_sfc(from), "Spatial"))
273273
#' `sp` objects to `sf` and `sfc` with `as(x, "sf")`.
274274
#' @rdname coerce-methods
275275
#' @name as_Spatial
276-
#' @md
277276
#' @param from object of class `sf`, `sfc_POINT`, `sfc_MULTIPOINT`, `sfc_LINESTRING`,
278277
#' `sfc_MULTILINESTRING`, `sfc_POLYGON`, or `sfc_MULTIPOLYGON`.
279278
#' @param cast logical; if `TRUE`, [st_cast()] `from` before converting, so that e.g.

man/coerce-methods.Rd

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)