Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Homework Help/Study Tips Expert

You can use either Latex (and SWeave) or RMarkdown for this assignment.

There are two, and only two deliverables.

1. A single *.Rnw file which will contain all the code used to obtain the data, make any need calculations and answer all questions.

2. A single pdf showing the answers to all questions. All knitr code chunks should be visible and each question should be numbered.

Q1. Find the 2015 Cricket World Cup venue with the largest capacity.

i. Use rvest to read in the Venues table.

ii. Show the name of the venue with the largest capacity.

iii. Include all code in a code chunk name q1

iv. Use \Sexpr or the equivalent for RMarkdown inline R code output to display the following sentence:

v. "The 2015 Cricket World Cup venue with the largest capacity was _."

vi. Insert the correct venue name in the blank

Q2. The American Community Survey distributes downloadable data about United States communities.

i. Download the 2006 microdata survey about housing for the state of Idaho using download.file() from here:

https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2Fss06hid.csv

ii. and load the data into R. The code book, describing the variable names is here:

https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2FPUMSDataDict06.pdf

iii. How many properties are worth $1,000,000 or more?

iv. Your answer should include all code needed to download the data and calculate the results in a knitr chunk named Q2.

v. The text of your answer should be, "The answer to Q2 is .

vi. The output should use \Sexpr or the equivalent for RMarkdown inline R code output to fill in the blank.

Q3. Load the Gross Domestic Product data for the 190 ranked countries in this data set:

https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2FGDP.csv

i. What is the average GDP ranking for the "High income: OECD" and "High income: nonOECD" group?

You can see which countries are OECD and Non-OECD from this file:

https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2FEDSTATS_Country.csv

ii. Your answer should include all code needed to download the data and calculate the results in a knitr chunk named Q3.

iii. The text of your answer should be, "The answer to Q3 is ."

iv. The output should use \Sexpr or the equivalent for RMarkdown inline R code output to fill in the 2 blanks.

Q4. Load the chinainet.csv data from Reggienet.

i. Create a bar chart showing the number of broadband users in China for the first and last years in the data set.

2000 is the first year with data.

ii. Your answer should include all code needed to download the data and display the bar chart in a knitr chunk named Q4.

It is not required, but I encourage you to use ggplot to create your bar chart.

Q5. Load the ncaa.txt data from ReggieNet. This is a list of tweets that contain @OhioStateFB or @UMichFootball.

i. Create a bar chart showing the number of tweets containing "@OhioStateFB" and the number containing "@UMichFootball".

iii. Your answer should include all code needed to download the data and display the bar chart in a knitr chunk named Q5.

It is not required, but I encourage you to use ggplot to create your bar chart.

Q6. Recreate the Percent of Primary Care Physicians Selecting Immunization Menu Measure without Exclusion bar chart:

https://dashboard.healthit.gov/quickstats/pages/FIG-Percent-Medicare-Eligible-Primary-Care-Physicians-Selecting-Immunization-Measure.php

Note: the data is just below the chart.

i. Your answer should include all code needed to download the data and display the bar chart in a knitr chunk named Q6.

It is not required, but I encourage you to use ggplot to create your bar chart.

Q7. High paying IT jobs

i. Obtain data from the BLS showing salaries for Computer and Mathematical Occupations:

http://www.bls.gov/oes/current/oes150000.htm

ii. Which Metropolitan area pays the highest for computer and mathematical occupations?

iii. Your answer should include all code needed to download the data and calculate the results in a knitr chunk named Q7.

iv. The text of your answer should be, "The answer to Q7 is "

v. The output should use \Sexpr or the equivalent for RMarkdown inline R code output to fill in the blank.

Q8. Internet users in Africa

There are two ways to answer this question. Please read all instructions before deciding which method you want to use.

First method: http://www.itk.ilstu.edu/faculty/jrwolf/q8.html

From the Bloomberg article above, answer the following questions:

Second method:

From the data file q8.csv on ReggieNet, answer the following questions:

i. How many internet users are there in Africa?

ii. What is the internet penetration rate for Africa?

iii. What is the internet penetration rate for the rest of the world?

iv. Your answer should include all code needed to download the data and calculate the results in a knitr chunk named Q8.

v. The text of your answer should be, "The answer to Q8 is ____%___%"

vi. The output should use \Sexpr or the equivalent for RMarkdown inline R code output to fill in the blanks.

Extra Credit.

You can use the quantmod package to get historical stock prices for publicly traded companies on the NASDAQ and NYSE.

i. Use the following code to download data on Amazon's stock price and get the times the data was sampled.

library(quantmod)
amzn = getSymbols("AMZN",auto.assign=FALSE) sampleTimes = index(amzn)

i. How many values were collected in 2012? How many values were collected on Mondays in 2012?

ii. Your answer should include all code needed to download the data and calulate the results in a knitr chunk named Q3.

iii. The text of your answer should be, "The answer to the extra credit is ___, ___.

iv. The output should use \Sexpr or the equivalent for RMarkdown inline R code output to fill in the 2 blanks.

Homework Help/Study Tips, Others

  • Category:- Homework Help/Study Tips
  • Reference No.:- M92055712
  • Price:- $80

Guranteed 48 Hours Delivery, In Price:- $80

Have any Question?


Related Questions in Homework Help/Study Tips

Assignment tasks corporate regulationido you own research

ASSIGNMENT TASKS CORPORATE REGULATION (i) Do you own research and critically discuss whether the financial accounting and reporting should be regulated or manager should be allowed to disclose financial accounting inform ...

Question please respond to the followingbased on your

Question: Please respond to the following: Based on your reading this week, determine two (2) of the challenges facing multicultural teams, and suggest how to overcome each of those challenges using the delineation of pr ...

Question part 1 sharpening the team mind communication and

Question: Part 1: Sharpening the Team Mind: Communication and Collective Intelligence A. What are some of the possible biases and points of error that may arise in team communication systems? In addition to those cited i ...

Question you are a book store chain like barnes and nobles

Question: You are a book store chain like Barnes and Nobles or 2nd and Charles. You decide that your current application is not up to date anymore and is not serving your company like it should. To gain more speed and ag ...

Explain and give an example of one aspect of change in the

Explain and give an example of one aspect of change in the healthcare industry today, and link leadership competencies necessary to successfully navigating the organizational changes required for dealing with the change. ...

Question culturally competent nursingfor this assignment

Question: Culturally Competent Nursing For this assignment, you will interview a person from a cultural background that is different from your own. Using the twelve domains of culture from the Purnell Model, discuss the ...

Question for this assignment you will invent a new business

Question: For this assignment you will invent a new business. This is a new start - up venture, not an existing one or one that is expanding. Do not use a business created in a previous class. You may not use papers (or ...

Write strategic planperformance objectivein this assessment

Write strategic plan Performance objective In this assessment, you are required to develop and document a strategic plan for the organisation based on the research you have conducted. You will also need to communicate th ...

In this discussion the focus is on examining agencies

In this discussion, the focus is on examining agencies responsible for child protection. You will sharpen your technology skills by creating an infographic about a specific agency. Infographics are a way to visualize dat ...

Question bull conduct research to determine three types of

Question: • Conduct research to determine three types of computer crime. Please provide a detailed description for all crimes, and share an example of where an organization was impacted by each of the types. • Elaborate ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As