TNC-NMFO / NWLAND

carbon accounting model
0 stars 0 forks source link

asRan | write_caland_inputs | diff_area_ha no rows to aggregate #111

Closed sbassett closed 2 years ago

sbassett commented 2 years ago
 Error in aggregate.data.frame(lhs, mf[-1L], FUN = FUN, ...) : 
  no rows to aggregate 
5.
stop("no rows to aggregate") 
4.
aggregate.data.frame(lhs, mf[-1L], FUN = FUN, ...) 
3.
aggregate.formula(diff_area_ha ~ reg_name + own_name, unavail_loss, 
    FUN = sum) 
2.
aggregate(diff_area_ha ~ reg_name + own_name, unavail_loss, FUN = sum) at write_caland_inputs.r#632
1.
write_caland_inputs(c_file = "2022_01_13_input_conm_testA_rcp85_noOcean.xls", 
    inputs_dir = "2022_01_13_input_conm_testA_rcp85_noOcean", 
    parameter_file = "_conm_lc_params_testA.xls", scenarios_file = "_conm_scenarios_testA_ac.xls", 
    units_scenario = "ac", climate_c_file = "_conm_climate_c_scalars_CNRM-ESM2-1_585.csv",  ... 
sbassett commented 2 years ago

better to check if this code needed rather than commenting out as unnecessary