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]:=
![Click for copyable input](assets.en/access-the-data-repository/In_35.png)
nycResources = ResourceSearch["NYC"]
Out[1]=
![](assets.en/access-the-data-repository/O_29.png)
Extract the data from the objects named "NYC Motor Vehicle Collisions".
In[2]:=
![Click for copyable input](assets.en/access-the-data-repository/In_36.png)
dataset =
ResourceData[
First[Select[
nycResources, #["Name"] == "NYC Motor Vehicle Collisions" &]]];
Restrict to data in Manhattan.
In[3]:=
![Click for copyable input](assets.en/access-the-data-repository/In_37.png)
manhattanCollions = Select[dataset,
#Borough ==
Entity["AdministrativeDivision", {"NewYorkCounty", "NewYork",
"UnitedStates"}] &];
Represent that subset of data with a geo histogram.
In[4]:=
![Click for copyable input](assets.en/access-the-data-repository/In_38.png)
GeoHistogram[Normal[manhattanCollions[All, "Coordinates"]],
GeoRange -> Quantity[7, "Miles"]]
Out[4]=
![](assets.en/access-the-data-repository/O_30.png)