Allan Rossman used to live on a golf course in a spot where dozens of balls would come into his yard every week. He collected the balls and eventually tallied up the numbers on the first 5000 golf balls he collected. Of these 486 bore the number 1, 2, 3, or 4. The remaining 14 golf balls were omitted from the data.
Examples
data(golfballs)
golfballs/sum(golfballs)
#> 1 2 3 4
#> 0.2818930 0.2839506 0.2201646 0.2139918
chisq.test(golfballs, p = rep(.25,4))
#>
#> Chi-squared test for given probabilities
#>
#> data: golfballs
#> X-squared = 8.4691, df = 3, p-value = 0.03725
#>