@@ -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
241241setAs(" 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
251251setAs(" 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
263263setAs(" 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.
0 commit comments