Use the given code below to answer the questions.

Q1 Get Amazon stock prices, instead of Apple.

Hint: Insert a new code chunk below and type in the code, using the tq_get() function above. Replace the ticker symbol for Microsoft. You may find the ticker symbol for Microsoft from Yahoo Finance.

Q2 How many columns (variables) are there?

7

Q3 What are the variables?

the variables are the different stock types

Q4 What type of data are they? What are other basic data types?

Numeric data is the type used here. Character data, logical data are other types

Q5 How many rows are there?

923

Q6 What does the row represent?

What the stock is, what it opened at, and what the highs and lows are for the day along with the closing cost for a share with how many stocks were traded that day.

Q7 Create a line plot for the data.

Told to skip

Q8 Hide the messages and warings but display the code and results of the code on the webpage.

Hint: Change message, warning, collapse, echo and results in the chunk options. Refer to the RMarkdown Reference Guide.

Q9 Display the title and your name correctly at the top of the webpage.

Q10 Use the correct slug.