Initialize the data objects at head of loop through strings
Use pattern matching to get ‘init’ object
Use pattern matching to get ‘wban’ object
Use pattern matching to get ‘wmo’ object
Use pattern matching to get ‘lat’ object
Use pattern matching to get ‘lon’ object
Use pattern matching to get ‘elev’ object
Use pattern matching and trim to get ’station_name’ object
Use pattern matching to get ‘prov_state’ object
Use pattern matching to get ‘country’ object
Use conditional at end of loop to combine vectors into df
Create data frame with vector objects generated from loop
Change object class to numeric for lat, lon, and elev
Clean up objects from global environment
Close inner and outer loops
Return the ‘df_soundings’ data frame object