Re: [R-sig-Geo] CRAN releases of sp, rgdal and rgeos

2018-06-19 Thread Tomislav Hengl
Two weeks ago I installed new GDAL 2.3.* from source, then tried installing rgdal and got the error about GDAL requires C++11. Then I had to remove everything and reinstall GDAL 2.2. Would love to be able to start using the newest GDAL inside R as it seems that many things have been improved (

Re: [R-sig-Geo] CRAN releases of sp, rgdal and rgeos

2018-06-19 Thread Roger Bivand
On Tue, 19 Jun 2018, Tomislav Hengl wrote: Two weeks ago I installed new GDAL 2.3.* from source, then tried installing rgdal and got the error about GDAL requires C++11. Then I had to remove everything and reinstall GDAL 2.2. Would love to be able to start using the newest GDAL inside R as it se

[R-sig-Geo] adonis2 in vegan (distance or abundance matrix)

2018-06-19 Thread Tim Richter-Heitmann
Der list, i have came across this interesting feature of vegan's adonis2. The example in ?adonis2 shows that adonis2takes an abundance matrix, and converts it to a distance matrix, as given in "method": library(vegan) data(dune) data(dune.env) ad1 <- adonis2(dune ~ Management*A1, data = dune.e

Re: [R-sig-Geo] CRAN releases of sp, rgdal and rgeos

2018-06-19 Thread Tomislav Hengl
Hi Roger, I have now managed to reinstall GDAL 2.3 and the latest versions of rgdal and sf. These are the steps I have followed: 1. First remove existing installation of GDAL using: sudo apt-get purge --auto-remove gdal-bin *this also removes QGIS / anything linked with GDAL. 2. Download

[R-sig-Geo] nb object in spdep from categorical attribute

2018-06-19 Thread Dexter Locke
Dear list, Does anyone know how to make nb objects (to eventually make spatial weights) with spdep using an attribute in a shapefile's data frame? Consider, for example, all property parcels on the same street segment should be defined as neighbors. In the parcel polygons I have the associated st