Learn R Programming

lotterybr (version 0.2.0)

get_data: Function to download lottery data from git repository

Description

This function downloads the Brazilian lottery game data from Caixa Federal up to the date declared

Usage

get_data(
  game = c("maismilionaria", "megasena", "lotofacil", "quina", "lotomania", "duplasena",
    "diadesorte"),
  type = c("numbers", "winners"),
  language = "eng"
)

Value

tibble/data.frame containing the downloaded data

Arguments

game

select which Brazilian lottery game

type

select if you want the winners database or the numbers result

language

select desired language

Examples

Run this code
# \donttest{
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
# }

Run the code above in your browser using DataLab