{"id":22357896,"url":"https://github.com/beatrizmilz/mananciais","last_synced_at":"2025-07-18T21:32:05.318Z","repository":{"id":45657784,"uuid":"298861208","full_name":"beatrizmilz/mananciais","owner":"beatrizmilz","description":"Base de dados sobre volume operacional em mananciais de abastecimento público na Região Metropolitana de São Paulo (SP - Brasil).","archived":false,"fork":false,"pushed_at":"2024-05-28T12:36:35.000Z","size":2592128,"stargazers_count":19,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-29T04:10:38.405Z","etag":null,"topics":["git-scraping"],"latest_commit_sha":null,"homepage":"https://beatrizmilz.github.io/mananciais/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc-by-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beatrizmilz.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-26T17:03:45.000Z","updated_at":"2024-05-30T14:21:11.577Z","dependencies_parsed_at":"2023-10-25T14:01:23.080Z","dependency_job_id":"d62f7e77-ad6a-4340-998a-19635ff0ab59","html_url":"https://github.com/beatrizmilz/mananciais","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/beatrizmilz/mananciais","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatrizmilz%2Fmananciais","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatrizmilz%2Fmananciais/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatrizmilz%2Fmananciais/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatrizmilz%2Fmananciais/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beatrizmilz","download_url":"https://codeload.github.com/beatrizmilz/mananciais/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatrizmilz%2Fmananciais/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265837534,"owners_count":23836557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git-scraping"],"created_at":"2024-12-04T14:16:45.405Z","updated_at":"2025-07-18T21:32:05.156Z","avatar_url":"https://github.com/beatrizmilz.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# Pacote Mananciais \u003cimg src=\"man/figures/hexlogo.png\" align=\"right\" width = \"120px\"/\u003e\n\n\u003c!-- badges: start --\u003e\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4733056.svg)](https://doi.org/10.5281/zenodo.4733056) [![R build status](https://github.com/beatrizmilz/mananciais/workflows/R-CMD-check/badge.svg)](https://github.com/beatrizmilz/mananciais/actions) [![update-data](https://github.com/beatrizmilz/mananciais/actions/workflows/2-update_data.yaml/badge.svg)](https://github.com/beatrizmilz/mananciais/actions/workflows/2-update_data.yaml) [![Codecov test coverage](https://codecov.io/gh/beatrizmilz/mananciais/branch/master/graph/badge.svg)](https://codecov.io/gh/beatrizmilz/mananciais?branch=master)\n\u003c!-- badges: end --\u003e\n\nO objetivo deste pacote é disponibilizar a base de dados sobre o volume operacional em mananciais de abastecimento público na Região Metropolitana de São Paulo (SP - Brasil). O pacote é atualizado diariamente através de um workflow com [GitHub Actions](https://github.com/beatrizmilz/mananciais/actions).\n\nOs dados foram obtidos no [Portal dos Mananciais](http://mananciais.sabesp.com.br/Situacao) da [SABESP](http://site.sabesp.com.br/site/Default.aspx).\n\nEste pacote foi derivado de um código web scraping desenvolvido pela equipe da [Curso-R](https://www.curso-r.com/), em uma [live](https://youtu.be/jvZIxrMmOcQ), e o código original está disponível [neste link](https://github.com/curso-r/lives/blob/master/drafts/20200730_scraper_sabesp.R).\n\nEste pacote foi criado no âmbito da [pesquisa de doutorado de Beatriz Milz](https://beatrizmilz.github.io/tese/). \n\n\n__Caso você não utilize R__, é possível __fazer download da base de dados__ através dos seguintes links:\n\n  - [Arquivo `.csv`](https://github.com/beatrizmilz/mananciais/raw/master/inst/extdata/mananciais.csv) \n  - [Arquivo `.xlsx`](https://github.com/beatrizmilz/mananciais/blob/master/inst/extdata/mananciais.xlsx?raw=true)\n  \n  \nOs arquivos foram salvos com encoding UTF-8, e separados por ponto-e-vírgula.  \n\n## Instalação\n\nEste pacote pode ser instalado através do  [GitHub](https://github.com/) utilizando o seguinte código em `R`:\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"beatrizmilz/mananciais\")\nlibrary(mananciais)\n```\n## Como usar?\n\nCaso você tenha conexão à internet, é possível buscar a base atualizada usando a função `dados_mananciais()`:\n\n```{r}\nmananciais \u003c- mananciais::dados_mananciais() \n```\n\nCaso você não tenha conexão à internet, você pode utilizar a base\ndisponível no pacote. Porém as mesmas estarão atualizadas até a data em\nque você instalou (ou atualizou) o pacote. \n\nAbaixo segue um exemplo da base disponível:\n\n```{r example}\ndplyr::glimpse(mananciais)\n```\n\nCaso queira saber o significado de cada variável, leia a [documentação da base de dados](https://beatrizmilz.github.io/mananciais/reference/mananciais.html) ou utilize a seguinte função:\n\n```r \n?mananciais::mananciais\n```\n\n### Exemplo de tabela\n\n```{r eval=TRUE, message=FALSE, warning=FALSE, include=TRUE}\nlibrary(magrittr)\nmananciais %\u003e% \n  dplyr::arrange(desc(data)) %\u003e% \n  head(7) %\u003e%\n  knitr::kable()\n```\n\n\n## Como citar o pacote\n\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4733056.svg)](https://doi.org/10.5281/zenodo.4733056)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeatrizmilz%2Fmananciais","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeatrizmilz%2Fmananciais","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeatrizmilz%2Fmananciais/lists"}