[R] Maps: Country coding

Kjetil Halvorsen kjetilbrinchmannhalvorsen at gmail.com
Wed Apr 28 00:05:14 CEST 2010


have a look at the cran pacvkage countrycode!

Kjetil

On Tue, Apr 27, 2010 at 5:30 PM, Ray Brownrigg
<Ray.Brownrigg at ecs.vuw.ac.nz> wrote:
> On Wed, 28 Apr 2010, Berthold Stegemann wrote:
>> Hello,
>>
>> I am using the maps library for plotting maps.
>>
>> To build new geograhical sets such as Europe I use
>>
>> europe = c('Germany','Netherlands',...)
>>
>> Is there a list of county codes used by the map function.
>>
>> Thanks,
>> Berthold
>
> If you mean the names of the countries, have a look at the file:
> ${R_HOME}/library/maps/mapdata/world.N which lists the name associated with every polygon.
>
> Note that the maps database is historical, for example Czechoslovakia is one country.
>
> Hope this helps,
> Ray Brownrigg
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list