R Script to analyze the OSM-PostGIS