Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #10346 > unrolled thread

Re: Using CountryData to Get US Population by State

Started byGregory Lypny <GREGORY.LYPNY@videotron.ca>
First post2012-06-04 08:20 +0000
Last post2012-06-04 08:20 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Using CountryData to Get US Population by State Gregory Lypny <GREGORY.LYPNY@videotron.ca> - 2012-06-04 08:20 +0000

#10346 — Re: Using CountryData to Get US Population by State

FromGregory Lypny <GREGORY.LYPNY@videotron.ca>
Date2012-06-04 08:20 +0000
SubjectRe: Using CountryData to Get US Population by State
Message-ID<jqhr42$kl2$1@smc.vnet.net>
Thanks again, Bob.  And thank you, Harvey.  At first I did not appreciate how to turn your Wolfram Alpha query into a Mathematica statement.

Regards,

Gregory


On Sun, Jun 3, 2012, at 8:45 AM, Bob Hanlon wrote:

> 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@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@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@videotron.ca]
>>> Sent: Saturday, June 02, 2012 5:45 AM
>>> To: mathgroup@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

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web