Sf: Error: could not find function "as_Spatial"

Created on 2 Apr 2017  路  3Comments  路  Source: r-spatial/sf

library(sf) loaded without any warning.
But I could not use as_Spatial, although I can see the help doc of it.
Any suggestion what I can do?
Thank you.

> sessionInfo()
R version 3.3.3 (2017-03-06)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: macOS Sierra 10.12.4

locale:
[1] C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods  
[7] base     

other attached packages:
[1] plyr_1.8.4 sf_0.4-1   sp_1.2-4  

loaded via a namespace (and not attached):
[1] magrittr_1.5    DBI_0.6-1       tools_3.3.3     units_0.4-3    
[5] yaml_2.1.14     Rcpp_0.12.10    udunits2_0.13   grid_3.3.3     
[9] lattice_0.20-35

Most helpful comment

Thans, updated now.

All 3 comments

Probably you should use as(sf_object, 'Spatial) instead.

@edzer as_Spatial help file exists - maybe it should be removed/edited?

Thans, updated now.

Was this page helpful?
0 / 5 - 0 ratings