get_data {lotterybr}R Documentation

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"
)

Arguments

game

select which Brazilian lottery game

type

select if you want the winners database or the numbers result

language

select desired language

Value

tibble/data.frame containing the downloaded data

Examples


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



[Package lotterybr version 0.2.0 Index]