Home / Expert Answers / Computer Science / 5-import-the-649-csv-dataset-this-dataset-has-all-of-the-winning-6-49-lottery-numbers-from-1982-to-pa354

(Solved): 5) Import the 649.csv dataset. This dataset has all of the winning 6/49 lottery numbers from 1982 to ...



5) Import the 649.csv dataset. This dataset has all of the winning 6/49 lottery numbers from 1982 to 2018. (The way this lottery works is the numbers 1-49 are put onto balls and 7 (6 and 1 bonus number) of those balls are drawn, note the ball is NOT put back after it is drawn so it can only be chosen once per draw, but it can be drawn in any order as the numbers are NOT sorted)

a) After importing the file into R, create a smaller data frame that consists of the draw number and the date that the draw occurred for every draw where the numeric day of your birth was drawn.(note, your birthday number could have been drawn for any of the numbers including the bonus number, so you might have to check multiple times!). Build one singular data frame that shows all of the draw dates where your birth number was drawn.

b) Print out to the terminal the total number of draws where your birthday number was drawn in your Rscript file

. c) Print out the draw number drawn slot which the MOST instances of your birthday number was drawn (including the bonus draw number) and say how many times your birthday number was drawn.

In R programming



We have an Answer from Expert

View Expert Answer

Expert Answer


a) To import the 649.csv dataset, you can use the following code:lottery <- read.csv("649.csv")To create a smaller data frame that consists of the dra
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe