Skip to contents

the function takes a list of states and passes them through a loop to pull all cities in the provided states.

Usage

Pull_Cities(df_grocery_all, state_list)

Arguments

df_grocery_all

A data frame containing all the store locations pulled from the googleway::google_places API.

state_list

A list of unique state values to iterate through.

Value

returns a data frame of all the cities in a state(s) called all_cities

Details

values in the list are filtered using unique() to avoid repetitive loops.

Author

Harun Celik