[R-sig-Geo] Dynamic Spatial Panel Data Models in R

2021-10-21 Thread El Mechry El Koudouss
Dear readers,
Is anyone here aware of an R package that is able to estimate dynamic
spatial panel data models? I am aware of the existence of some MATLAB
routines that are able to do this but I am not that familiar with MATLAB.
Your recommendations would be greatly appreciated.
Thanks

-- 
El Mechry, El Koudouss (Meshry)
Graduate Research Assistant
Center for International Policy Studies
Fordham University
Department of Economics
Website: www.meshry.com

[[alternative HTML version deleted]]

___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo


[R-sig-Geo] Package lwgeom (0.2-4) fails to install on Shinyapps.io with an "upgrade GEOS to 3.6.0 or later" error

2020-06-03 Thread El Mechry El Koudouss
Dear all,
I am building a Shiny app that works fine on my laptop (Windows 10).
However, it fails to deploy on Shinyapps.io because the package lwgeom
(0.2-4) fails to install on Shinyapps.io. I have the sf  package installed
and loaded to the library on my laptop and it links to GEOS 3.8.0. I also
have the  lwgeom package installed and loaded to the library in my laptop
and it also links to GOES 3.8.0. Yes the error I get is:
error: upgrade GEOS to 3.6.0 or later
ERROR: configuration failed for package ‘lwgeom’
The full message I get up on trying to deploy my app is pasted below. For
more information, I am using the following packages and the following shiny
functions. I am hoping someone here can point me in the right direction.
Thanks.

library(shiny)
library(shinythemes)
library(plotly)
library(tidyverse)
library(sf)
library(leaflet)
library(tmap)
library(lubridate)
renderLeaflet()
tm_shape()
tm_polygons()
tmap_leaflet()

Full error message is below:
Building R package: lwgeom (0.2-4)
/mnt/packages/build /mnt
* installing to library ‘/opt/R/4.0.0/lib/R/library’
* installing *source* package ‘lwgeom’ ...
** package ‘lwgeom’ successfully unpacked and MD5 sums checked
** using staged installation
configure: CC: gcc
configure: CXX: g++ -std=gnu++11
configure: pkg-config proj exists, will use it
configure: PROJ: 4.9.2
checking for pj_init_plus in -lproj... yes
checking PROJ: epsg found and readable... yes
configure: POSTGIS_PROJ_VERSION: 49
checking for geos-config... /usr/bin/geos-config
checking geos-config usability... yes
configure: GEOS: 3.5.1
checking GEOS version >= 3.6.0... no
configure: error: upgrade GEOS to 3.6.0 or later
ERROR: configuration failed for package ‘lwgeom’
* removing ‘/opt/R/4.0.0/lib/R/library/lwgeom’
# End Task Log
#
Error: Unhandled Exception: Child Task 741259659 failed: Error building
image: Error building lwgeom (0.2-4). Build exited with non-zero status: 1
Execution halted

-- 
El Mechry, El Koudouss (Meshry)
Graduate Research Assistant
Center for International Policy Studies
Fordham University
Department of Economics
Website: www.meshry.com

[[alternative HTML version deleted]]

___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo


[R-sig-Geo] Merging Shape files

2020-03-17 Thread El Mechry El Koudouss
Dear readers,
I downloaded a shapefile with data on crime incidents in Washington DC in
2016 (available here:
https://opendata.dc.gov/datasets/crime-incidents-in-2016) and another
shapefile with data on parks and recreation areas, also in Washington DC
(available here: https://opendata.dc.gov/datasets/parks-and-recreation-areas).
I was able to read both shapefiles using st_read() from the sf package. My
question is, how can I merge the two data sets? I tried st_join() but it
simply resulted in empty columns from the parks dataset getting added to
the crime data. Any guidance would be much appreciated.
library(sf)
parks <- st_read("Parks_and_Recreation_Areas.shp")
crime <- st_read("Crime_Incidents_in_2016.shp")
df <- st_join(crime, parks)

-- 
El Mechry, El Koudouss (Meshry)
Graduate Research Assistant
Center for International Policy Studies
Fordham University
Department of Economics
Website: www.meshry.com

[[alternative HTML version deleted]]

___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo