Take uploaded ANC and shape file paths or objects and format as data which can be used to draw input time series graphs.

prepare_input_time_series_anc(anc, shape)

Arguments

anc

Path to file containing ANC data or ANC data object

shape

Path to file containing geojson areas data or shape sf object

Value

Data formatted for plotting input ANC time series containing columns area_id, area_name, area_level, area_level_label, parent_area_id, area_sort_order, time_period, year, quarter, calendar_quarter, area_hierarchy, plot, value and missing_ids