Title: | Lottery Datasets from Caixa Economica Federal |
---|---|
Description: | 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. |
Authors: | Tomas Bernardes [aut, cre, cph], Salvador Netto [aut], Fabio Demarqui [aut, cph] |
Maintainer: | Tomas Bernardes <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.2.0 |
Built: | 2024-11-21 03:04:47 UTC |
Source: | https://github.com/tomasbp2/lotterybr |
This function downloads the Brazilian lottery game data from Caixa Federal up to the date declared
get_data( game = c("maismilionaria", "megasena", "lotofacil", "quina", "lotomania", "duplasena", "diadesorte"), type = c("numbers", "winners"), language = "eng" )
get_data( game = c("maismilionaria", "megasena", "lotofacil", "quina", "lotomania", "duplasena", "diadesorte"), type = c("numbers", "winners"), language = "eng" )
game |
select which Brazilian lottery game |
type |
select if you want the winners database or the numbers result |
language |
select desired language |
tibble/data.frame containing the downloaded data
library(lotterybr) megasena_ganhadores <- get_data(game= "megasena",type = "winners",language = "eng") megasena_ganhadores lotofacil_dezenas <- get_data(game= "lotofacil",type = "numbers", language = "ptbr") lotofacil_dezenas
library(lotterybr) megasena_ganhadores <- get_data(game= "megasena",type = "winners",language = "eng") megasena_ganhadores lotofacil_dezenas <- get_data(game= "lotofacil",type = "numbers", language = "ptbr") lotofacil_dezenas
This function opens a shiny app that uses the datasets provided
open_app(language = c("eng"))
open_app(language = c("eng"))
language |
select which language the app will have. Options are "pt" for Portuguese and "en" for English. |
This function opens the Shiny application corresponding to the specified language for the Brazilian lottery data.
None. This function launches the Shiny application.