An open API service indexing awesome lists of open source software.

https://github.com/brunomontezano/cfpr

Scrapes Data from Brazilian Federal Council of Psychology. Small R package to practice some web scraping concepts.
https://github.com/brunomontezano/cfpr

brazilian-portuguese council government-data psychology r r-package web-scraping

Last synced: about 2 months ago
JSON representation

Scrapes Data from Brazilian Federal Council of Psychology. Small R package to practice some web scraping concepts.

Awesome Lists containing this project

README

          

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

# CFPr

[![R-CMD-check](https://github.com/brunomontezano/CFPr/workflows/R-CMD-check/badge.svg)](https://github.com/brunomontezano/CFPr/actions)

The purpose of the CFPr package is to provide tables contained on the Brazilian Federal Psychology Council website within the R environment with ease in a clean and nice format.

## Installation

You can install the current version of CFPr with:

``` r
install.packages("remotes")
remotes::install_github("brunomontezano/CFPr")
```

## Usage

You can choose between three tables

* By-state table (`tabela_estado()`)
* By-council table (`tabela_regional()`)
* By-gender table (`tabela_sexo()`)

Let's suppose I want to check the number of psychologists of each gender
in brazilian states. In this case, I should use the `tabela_sexo` function:

```{r}
# Load the package
library(CFPr)
# Assign data to an R object and then print it
bysex_table <- tabela_sexo()
bysex_table
```

# To Do

- [ ] Plotting functions. Is it necessary?
- [ ] Restructure workflow to provide data (as data and not function-based). Is it better?

# Acknowledgement

I'd like to thank the [Brazilian Federal Council of Psychology](https://site.cfp.org.br/) for making the data available to the population.

# Contact

Feel free to leave an issue to improve the package, and contact me through this [email](mailto:brunodoyt@gmail.com).