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


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

Re: Using CountryData to Get US Population by State

Started byBob Hanlon <hanlonr357@gmail.com>
First post2012-06-03 09:02 +0000
Last post2012-06-03 20:04 +0000
Articles 2 — 2 participants

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 Bob Hanlon <hanlonr357@gmail.com> - 2012-06-03 09:02 +0000
    Re: Using CountryData to Get US Population by State "Kevin J. McCann" <kjm@KevinMcCann.com> - 2012-06-03 20:04 +0000

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

FromBob Hanlon <hanlonr357@gmail.com>
Date2012-06-03 09:02 +0000
SubjectRe: Using CountryData to Get US Population by State
Message-ID<jqf97p$a5m$1@smc.vnet.net>
statePopulations = {#, WolframAlpha[
      "population of " <> #, {{"Result", 1}, "ComputableData"}]} & /@
      DeleteCases[
    CountryData["UnitedStates", "Regions"],
    "DistrictOfColumbia"];


Bob Hanlon

On Sat, Jun 2, 2012 at 5:44 AM, Gregory Lypny
<GREGORY.LYPNY@videotron.ca> wrote:
> Hello everyone,
>
> Can anyone help me with the syntax for CountryData so that I can get the population of individual US states?
>
> Regards,
>
> Gregory

[toc] | [next] | [standalone]


#10344

From"Kevin J. McCann" <kjm@KevinMcCann.com>
Date2012-06-03 20:04 +0000
Message-ID<jqgfvp$fhn$1@smc.vnet.net>
In reply to#10336
An observation about the results: all of the states have integer 
populations except Georgia, which is floating point. Curious.

Kevin

On 6/3/2012 5:02 AM, Bob Hanlon wrote:
> statePopulations = {#, WolframAlpha[
>        "population of "<>  #, {{"Result", 1}, "ComputableData"}]}&  /@
>        DeleteCases[
>      CountryData["UnitedStates", "Regions"],
>      "DistrictOfColumbia"];
>
>
> Bob Hanlon
>
> On Sat, Jun 2, 2012 at 5:44 AM, Gregory Lypny
> <GREGORY.LYPNY@videotron.ca>  wrote:
>> Hello everyone,
>>
>> Can anyone help me with the syntax for CountryData so that I can get the population of individual US states?
>>
>> Regards,
>>
>> Gregory
>

[toc] | [prev] | [standalone]


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


csiph-web