do_map_nats | R Documentation |
This function prepares the data frame with the nationalities
to be mapped with get_map_nats
. It is used inside it.
do_map_nats(df_stats)
df_stats |
Data frame with the statistics and the corrected nationalities. |
List with the following elements:
df_all: Data frame with each country, its latitudes and longitudes and whether it must be coloured or not (depending on if there are players from that country).
countr_num: Vector with the countries from where there are players and the number of them.
leng: Number of countries in the world.
Guillermo Vinue
get_map_nats
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.