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


Groups > comp.soft-sys.math.mathematica > #10344

Re: Using CountryData to Get US Population by State

From "Kevin J. McCann" <kjm@KevinMcCann.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Using CountryData to Get US Population by State
Date 2012-06-03 20:04 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jqgfvp$fhn$1@smc.vnet.net> (permalink)
References <201206020944.FAA01148@smc.vnet.net> <jqf97p$a5m$1@smc.vnet.net>

Show all headers | View raw


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
>

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

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

csiph-web