Exract locality population data from a set of pages for a specific state from UNFPA's Sudan population projections for 2009-2020

sd_get_pop_locality(corpus, state, localities)

Arguments

corpus

An object representing text data extracted from the UNPFA Sudan population projections for a specific state. This is extracted using the pdf_text() function from the pdftools package

state

Name of state to which current data is for

localities

A vector of localities name for the given state

Value

A data.frame of population data for localities in a given state