I’m experimenting with data from the Wolfram data repository. I picked US Fatal Injuries 1999-2014
as an example. I looked at the example on the website: https://datarepository.wolframcloud.com/resources/dzviovich%3AUS-Fatal-Injuries-1999-2014
Rather that just imitate it, I wanted to pull some data from it. The data is all in Time Series
. I tried to follow the documentation in Mathematica to extract something, anything really, from the time series. I ran the following code:
y = ResourceData["US Fatal Injuries 1999-2014"]; z = y[Select[#Sex == "Male" && #AgeGroup == "< 15" && #Race == "All races" && #InjuryMechanism == "All Mechanisms" && #InjuryIntent == "Homicide" &], "Deaths"]
The output was:
The documentation on TimeSeries has the following example.
The average value of the stock over the date range: Mean[ts] 27.9065
I tried something similar:
Mean[z // Normal] (I tried with and without Normal)
The output was the same as the original time series:
I don’t know how to get a list of the dates or values, or to operate on the data.
Can anyone give me a jump start as to how to get into the data that I retrieved from the repository?