Access the Data Repository
Visualize the contents of a resource object in the Wolfram Data Repository.
Get a list of available New York City resources.
In[1]:=
nycResources = ResourceSearch["NYC"]
Out[1]=
Extract the data from the objects named "NYC Motor Vehicle Collisions".
In[2]:=
dataset =
ResourceData[
First[Select[
nycResources, #["Name"] == "NYC Motor Vehicle Collisions" &]]];
Restrict to data in Manhattan.
In[3]:=
manhattanCollions = Select[dataset,
#Borough ==
Entity["AdministrativeDivision", {"NewYorkCounty", "NewYork",
"UnitedStates"}] &];
Represent that subset of data with a geo histogram.
In[4]:=
GeoHistogram[Normal[manhattanCollions[All, "Coordinates"]],
GeoRange -> Quantity[7, "Miles"]]
Out[4]=