Question: Using R Studio [ R programming language] 3. (20 points) Install the R package babynames and load the babynames dataset. (a) Describe the babynames dataset
Using R Studio [ R programming language]
![Using R Studio [ R programming language] 3. (20 points) Install the](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66ee7e78e1ede_97666ee7e7889107.jpg)
3. (20 points) Install the R package babynames and load the babynames dataset. (a) Describe the babynames dataset in 2-3 sentences. How many rows and columns does the dataset have? (b) How many unique names are there in the dataset? Why is this number different from the number of rows in (a)? (c) What were the most popular male names for the years 1900, 1925, 1950, 1975, 2000? What were the most popular female names for the years 2010, 2011, 2012, 2013, 2014? (d) What are the 10 most popular male baby names across years (i.e., taking all years together)? What are the 10 most popular female baby names across years? Hint: there are several ways to do this in R, and just as a forewarning -- some methods can take several minutes and possibly hours depending on the processing power of your computer. It is not necessary that you use the most efficient/fast algorithm or functions. But if you are interested, you can always look up/try out ways to make this fast. 3. (20 points) Install the R package babynames and load the babynames dataset. (a) Describe the babynames dataset in 2-3 sentences. How many rows and columns does the dataset have? (b) How many unique names are there in the dataset? Why is this number different from the number of rows in (a)? (c) What were the most popular male names for the years 1900, 1925, 1950, 1975, 2000? What were the most popular female names for the years 2010, 2011, 2012, 2013, 2014? (d) What are the 10 most popular male baby names across years (i.e., taking all years together)? What are the 10 most popular female baby names across years? Hint: there are several ways to do this in R, and just as a forewarning -- some methods can take several minutes and possibly hours depending on the processing power of your computer. It is not necessary that you use the most efficient/fast algorithm or functions. But if you are interested, you can always look up/try out ways to make this fast
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
