Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10336 > unrolled thread
| Started by | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| First post | 2012-06-03 09:02 +0000 |
| Last post | 2012-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.
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
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Date | 2012-06-03 09:02 +0000 |
| Subject | Re: 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]
| From | "Kevin J. McCann" <kjm@KevinMcCann.com> |
|---|---|
| Date | 2012-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