I'm looking to pull data from open data.
But I noticed, my code is producing only 1000 rows of data when I now there are more. Where am I going wrong with this?
#libraries
library(RJSONIO)
#pull data
a <- fromJSON("https://data.cityofnewyork.us/resource/k5sk-y8y9.json?$query= SELECT Base_number, Base_name, Base_type, Base_Address")
#loop to extract (I'm aware that sapply or
#lapply may be better functions, how would I approach this issue with those?)
empty_a = NULL
for (i in a) {
print(i)
empty_a = rbind(empty_a, i)
}
empty_a = as.data.frame(empty_a)