| Title: | Access to CAPES Data |
|---|---|
| Description: | Provides simplified access to the data from the Catalog of Theses and Dissertations of the Brazilian Coordination for the Improvement of Higher Education Personnel (CAPES, <https://catalogodeteses.capes.gov.br>) for the years 1987 through 2024. The dataset includes variables such as Higher Education Institution (institution), Area of Concentration (area), Graduate Program Name (program_name), Type of Work (type), Language of Work (language), Author Identification (author), Abstract (abstract), Advisor Identification (advisor), Development Region (region), State (state). |
| Authors: | André Leite [aut, cre], Hugo Vasconcelos Medeiros [aut], Dalson Figueiredo Filho [aut] |
| Maintainer: | André Leite <[email protected]> |
| License: | GPL (>= 2) |
| Version: | 0.2.1 |
| Built: | 2026-09-21 11:49:54 UTC |
| Source: | https://github.com/milkway/capesr |
Aggregated data from the CAPES Catalog of Theses and Dissertations, containing summarized information by year, institution, area, program, type, region, and state (UF).
capes_synthetic_dfcapes_synthetic_df
A data frame with the following columns:
Reference year of the data.
Higher Education Institution.
Area of Concentration.
Name of the Graduate Program.
Type of work (e.g., Master's, Doctorate).
Region of Brazil.
Federative Unit (state).
Total number of works.
Synthetic data created from the CAPES Catalog of Theses and Dissertations.
data(capes_synthetic_df) head(capes_synthetic_df)data(capes_synthetic_df) head(capes_synthetic_df)
A data frame listing, for each year, the Parquet file distributed by the package and the URL from which it is downloaded. Used internally by [download_capes_data()]; the host can be overridden with the 'capesR.base_url' option (see [download_capes_data()]).
capes_yearscapes_years
A data frame with one row per year (1987-2024) and the columns:
Year of the data.
File name (e.g. 'capes_1987.parquet').
Download URL of the file.
File size in bytes, used to check the download.
MD5 checksum of the file.
Derived from the CAPES open data portal, <https://dadosabertos.capes.gov.br/group/catalogo-de-teses-e-dissertacoes-brasil>.
data(capes_years) head(capes_years)data(capes_years) head(capes_years)
Downloads the yearly Parquet files of the CAPES Catalog of Theses and Dissertations for the selected years. The file list and download URLs come from [capes_years].
download_capes_data( years, destination = tempdir(), timeout = 120, base_url = getOption("capesR.base_url") ) baixar_dados_capes( years, destination = tempdir(), timeout = 120, base_url = getOption("capesR.base_url") )download_capes_data( years, destination = tempdir(), timeout = 120, base_url = getOption("capesR.base_url") ) baixar_dados_capes( years, destination = tempdir(), timeout = 120, base_url = getOption("capesR.base_url") )
years |
A vector with the desired years (1987-2024). |
destination |
The directory where the files will be saved (default: temporary directory). |
timeout |
The timeout in seconds for the download process (default: 120 seconds). |
base_url |
Optional base URL of a mirror hosting the files listed in [capes_years]. Defaults to 'getOption("capesR.base_url")'; when 'NULL', the 'url' column of [capes_years] is used. |
A named list (by year) of file paths for the downloaded or already existing files.
# Download data for the years 1987 and 1990 capes_files <- download_capes_data(c(1987, 1990))# Download data for the years 1987 and 1990 capes_files <- download_capes_data(c(1987, 1990))
This function combines data from multiple Parquet files and applies optional filters, including text-based searches.
read_capes_data(files, filters = list()) ler_dados_capes(files, filters = list())read_capes_data(files, filters = list()) ler_dados_capes(files, filters = list())
files |
A vector or list of paths to Parquet files. |
filters |
A named list of filters. Values for the text columns 'titulo' and 'resumo' (or 'title'/'abstract') are matched as case-insensitive substrings, and a vector of terms keeps the rows containing any of them (e.g., 'list(titulo = c("varicela", "catapora"))'); all other columns are matched exactly (e.g., 'list(ano_base = 1987, uf = "SP", titulo = "educação")'). |
A 'data.frame' containing the combined and filtered data.
# Download data for the years 1987 and 1990 capes_files <- download_capes_data(c(1987, 1990)) # Combine all selected data combined_data <- read_capes_data(capes_files)# Download data for the years 1987 and 1990 capes_files <- download_capes_data(c(1987, 1990)) # Combine all selected data combined_data <- read_capes_data(capes_files)
Searches one or more terms in one or more text columns of a previously loaded 'data.frame'. Matching is literal (not a regular expression) and case-insensitive.
search_capes_text(data, term, field, match = c("any", "all")) buscar_texto_capes(data, term, field, match = c("any", "all"))search_capes_text(data, term, field, match = c("any", "all")) buscar_texto_capes(data, term, field, match = c("any", "all"))
data |
A 'data.frame' containing the CAPES Catalog of Theses and Dissertations data. |
term |
A character vector with one or more terms to search for. |
field |
A character vector with the name(s) of the column(s) to search in (e.g., '"titulo"', 'c("titulo", "resumo")'). |
match |
How several terms combine: '"any"' (default) keeps rows where at least one term occurs in at least one field; '"all"' keeps rows where every term occurs (each in at least one of the fields). |
A 'data.frame' with the matching rows. When nothing matches, an empty 'data.frame' with the same columns as 'data' is returned with a message.
# Download data for the years 1987 and 1990 capes_files <- download_capes_data(c(1987, 1990)) # Combine all selected data combined_data <- read_capes_data(capes_files) # Titles mentioning "Educação" results <- search_capes_text(combined_data, term = "Educação", field = "titulo") # Titles or abstracts mentioning either synonym results <- search_capes_text( combined_data, term = c("varicela", "catapora"), field = c("titulo", "resumo") ) # Abstracts mentioning both terms results <- search_capes_text( combined_data, term = c("saúde", "escola"), field = "resumo", match = "all" )# Download data for the years 1987 and 1990 capes_files <- download_capes_data(c(1987, 1990)) # Combine all selected data combined_data <- read_capes_data(capes_files) # Titles mentioning "Educação" results <- search_capes_text(combined_data, term = "Educação", field = "titulo") # Titles or abstracts mentioning either synonym results <- search_capes_text( combined_data, term = c("varicela", "catapora"), field = c("titulo", "resumo") ) # Abstracts mentioning both terms results <- search_capes_text( combined_data, term = c("saúde", "escola"), field = "resumo", match = "all" )