Skip to contents

This function extracts city and country data from a data frame with concert info, creating a unique list of locations that can for example be used to look up geographical coordinates

Usage

get_concert_locations(data)

Arguments

data

A data frame containing concert info with 'city' and 'country' columns.

Value

A data frame with unique city-country pairs and a combined 'location' column.

Examples

city_data <- data.frame(
  city = c("New York", "London", ""),
  country = c("USA", "UK", "France")
)
unique_locations <- get_concert_locations(unique_shows)
#> Error in value[[3L]](cond): Error processing cities: object 'unique_shows' not found