Lottery Datasets from Caixa Economica Federal

A collection of functions designed to streamline the retrieval of data from Brazilian lottery games operated by Caixa Econômica Federal, accessible through the official website at < https://loterias.caixa.gov.br/Paginas/default.aspx/>. Datasets for each game are conveniently stored on the GitHub page at < https://github.com/tomasbp2/LotteryBrasilDATA/>. Each game within this repository consists of two primary datasets: the winners dataset and the numbers dataset. The winners dataset includes crucial information such as the draw date, game type, potential matches, winners for each match, and corresponding prize amounts. Meanwhile, the numbers dataset provides essential details including the draw date, game type, and the numbers drawn during the respective lottery event. By offering easy access to these datasets, the package facilitates efficient data retrieval and analysis for researchers, analysts, and enthusiasts interested in exploring the dynamics and outcomes of Brazilian lottery games.


lotterybr

R-CMD-check

The goal of the package is to provide a function to automatically import data from the lotteries of Caixa Econômica Federal into the R environment. Data from the lotteries of Caixa Econômica Federal includes information on various games such as Mega-Sena, Lotofácil, Quina, among others. They are downloaded from the official website of the Federal Savings Bank at https://loterias.caixa.gov.br/.

Installation

You can install the development version of lotterybr like so:

# install.packages("devtools")
# devtools::install_github("tomasbp2/lotterybr")

Example

Downloading Lotofacil winners data:


library(lotterybr)

lotofacil <- get_data(game= "lotofacil", type= "winners")

Opening the shiny app


library(lotterybr)
open_app()
Shiny applications not supported in static R Markdown documents

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("lotterybr")

0.2.0 by Tomas Bernardes, 2 years ago


https://github.com/tomasbp2/lotterybr, https://tomasbp2.github.io/lotterybr/


Report a bug at https://github.com/tomasbp2/lotterybr/issues


Browse source code at https://github.com/cran/lotterybr


Authors: Tomas Bernardes [aut, cre, cph] , Salvador Netto [aut] , Fabio Demarqui [aut, cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Depends on dplyr, ggplot2, shiny, plotly

Suggests knitr, rmarkdown, testthat


See at CRAN