Re: Using CountryData to Get US Population by State
- To: mathgroup at smc.vnet.net
- Subject: [mg126752] Re: Using CountryData to Get US Population by State
- From: "Hobbs, Sylvia (DPH)" <sylvia.hobbs at state.ma.us>
- Date: Mon, 4 Jun 2012 04:20:15 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201206020944.FAA01148@smc.vnet.net>,<201206032002.QAA15892@smc.vnet.net>
or input in Mathematica = state population rankings
too bad it doesn't automatically create a gradient map like is SAS or STATA.
Sylvia D. Hobbs, MPH
Director of Research & Evaluation
Bureau of Health Care Safety and Quality
Massachusetts Department of Public Health
99 Chauncy Street, 11th Floor
Boston MA 02111
________________________________________
From: Bob Hanlon [hanlonr357 at gmail.com]
Sent: Sunday, June 03, 2012 4:02 PM
To: mathgroup at smc.vnet.net
Subject: [mg126752] Re: Using CountryData to Get US Population by State
After closer comparison between the two results, my original approach
provides erroneous results due to misinterpretation of names (e.g.,
New York resulted in the population of New York City rather than New
York State, Georgia resulted in Country of Georgia rather than US
state of Georgia). So Harvey's approach is not only faster it is
correct.
Bob Hanlon
On Sun, Jun 3, 2012 at 8:01 AM, Bob Hanlon <hanlonr357 at gmail.com> wrote:
> Harvey's solution is much faster than mine. Here is his in detail
>
> (statePopulations = WolframAlpha[
> "population of states in the United States",
> {{"PropertyRanking:USStateData", 1},
> "ComputableData"}]) // Grid
>
>
> Bob Hanlon
>
> On Sun, Jun 3, 2012 at 4:59 AM, Harvey P. Dale <hpd1 at nyu.edu> wrote:
>> You could submit this query to WolframAlpha: "population of
>> states in the United States"
>> Best,
>> Harvey
>>
>> -----Original Message-----
>> From: Gregory Lypny [mailto:GREGORY.LYPNY at videotron.ca]
>> Sent: Saturday, June 02, 2012 5:45 AM
>> To: mathgroup at smc.vnet.net
>> Subject: Using CountryData to Get US Population by State
>>
>> Hello everyone,
>>
>> Can anyone help me with the syntax for CountryData so that I can get the
>> population of individual US states?
>>
>> Regards,
>>
>> Gregory
>>
>>
>>
>
>
>
> --
> Bob Hanlon
--
Bob Hanlon
- References:
- Using CountryData to Get US Population by State
- From: Gregory Lypny <GREGORY.LYPNY@videotron.ca>
- Re: Using CountryData to Get US Population by State
- From: Bob Hanlon <hanlonr357@gmail.com>
- Using CountryData to Get US Population by State