# Access Rwanda PPI table
ppiRWA2019
# Given a specific PPI score (from 0 - 100), get the row of poverty
# probabilities from PPI table it corresponds to
ppiScore <- 50
ppiRWA2019[ppiRWA2019$score == ppiScore, ]
# Use subset() function to get the row of poverty probabilities corresponding
# to specific PPI score
ppiScore <- 50
subset(ppiRWA2019, score == ppiScore)
# Given a specific PPI score (from 0 - 100), get a poverty probability
# based on a specific poverty definition. In this example, the national
# poverty line is used
ppiScore <- 50
ppiRWA2019[ppiRWA2019$score == ppiScore, "nl100"]
Run the code above in your browser using DataLab