Crime, antisocial behaviour and the fear of crime can affect on people’s willingness to travel and access jobs and services.
library(jsonlite)
query_url <- "https://api.tfl.gov.uk/AccidentStats/2015?app_id=your_app_id_here&app_key=your_app_key_here"
d <- fromJSON(query_url)
accidents <- data.frame(lapply(as.data.frame(d), as.character), stringsAsFactors=FALSE)
library(jsonlite)
query_url <- "https://api.tfl.gov.uk/AccidentStats/2015?app_id=your_app_id_here&app_key=your_app_key_here"
l <- readLines(query_url)
d <- fromJSON(l)
accidents <- data.frame(lapply(as.data.frame(d), as.character), stringsAsFactors=FALSE)
library(ggplot2)
library(spatstat)
library(spdep)
library(aoristic)
Getting Started with R