Summarize V-Dem Data by Country
summarizedem.RdThis function summarizes a specified V-Dem indicator by country for a given time period.
Arguments
- indicator
- A character string specifying the V-Dem indicator to summarize. 
- start_year
- An integer specifying the start year for the summary (default is 1970). 
- end_year
- An integer specifying the end year for the summary (default is 2023). 
- countries
- An optional character vector specifying the countries to include (default is NULL, which includes all countries). 
Examples
# Summarize the liberal democracy index for all countries and years
summarizedem(indicator = "v2x_libdem")
  
    Summary of v2x_libdem by Country
    Years: 1970 - 2023
  
  
  
# Summarize the polyarchy index for all countries for the years 2000-2020
summarizedem(indicator = "v2x_polyarchy", start_year = 2000, end_year = 2020)
  
    Summary of v2x_polyarchy by Country
    Years: 2000 - 2020
  
  
  
# Summarize the civil liberties index for the BRICS with sparklines
countries = c("BRA", "RUS", "IND", "CHN", "ZAF")
summarizedem(indicator = "v2x_civlib",
              countries = countries)
  
    Summary of v2x_civlib by Country
    Years: 1970 - 2023