do_map_nats: Data frame for the nationalities map

View source: R/do_map_nats.R

do_map_natsR Documentation

Data frame for the nationalities map

Description

This function prepares the data frame with the nationalities to be mapped with get_map_nats. It is used inside it.

Usage

do_map_nats(df_stats)

Arguments

df_stats

Data frame with the statistics and the corrected nationalities.

Value

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.

Author(s)

Guillermo Vinue

See Also

get_map_nats


BAwiR documentation built on Nov. 14, 2023, 5:08 p.m.