Checks for and removes rows in which the scenario data column has malformed or missing spatial information.
clean_scenario_data(df, column_name = "scenario_data_0")The data frame with problematic rows removed.
df <- clean_scenario_data(df)
#> Error in clean_scenario_data(df): Column scenario_data_0 not found in dataframe!