Skip to contents

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

Usage

Pull_Counties(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 counties in a state(s) called all_counties

Details

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

Author

Harun Celik