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.
- Host: GitHub
- URL: https://github.com/brunomontezano/cfpr
- Owner: brunomontezano
- License: gpl-3.0
- Created: 2021-09-30T03:59:31.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-30T06:14:00.000Z (about 4 years ago)
- Last Synced: 2025-03-01T00:33:17.798Z (7 months ago)
- Topics: brazilian-portuguese, council, government-data, psychology, r, r-package, web-scraping
- Language: R
- Homepage:
- Size: 130 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE.md
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%"
)
```[](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).