Learn R Programming

valottery (version 0.0.1)

pick.4.1xday: Pick 4 (once daily)

Description

Historical data for the Pick 4 once daily game. Game play: Pick a four digit number from 0000 through 9999. Note: On January 30, 1995, Pick 4 switched to twice daily drawings.

Usage

pick.4.1xday

Arguments

Format

A data frame with 1,041 rows and 5 variables:
date
date of draw
N1
1st digit
N2
2nd digit
N3
3rd digit
N4
4th digit

Examples

Run this code
## Any Pick 4 happen more than once?
results <- apply(pick.4.1xday[,-1],1,function(x)paste(x,collapse = ""))
any(table(results) > 1)
## Which numbers?
i <- which(table(results) > 1,useNames = FALSE)
sort(table(results)[i],decreasing = TRUE)

Run the code above in your browser using DataLab