Use the given code below to answer the questions.

Q1 Get Walmart stock prices, instead of Apple.

## # A tibble: 1,025 x 7
##    date        open  high   low close   volume adjusted
##    <date>     <dbl> <dbl> <dbl> <dbl>    <dbl>    <dbl>
##  1 2016-01-04  60.5  61.5  60.4  61.5 11989200     55.7
##  2 2016-01-05  62.0  63.0  61.8  62.9 13326000     57.1
##  3 2016-01-06  62.5  64.0  62.5  63.5 16564600     57.6
##  4 2016-01-07  63.0  65.2  62.9  65.0 26430000     59.0
##  5 2016-01-08  65.1  65.4  63.4  63.5 17767900     57.6
##  6 2016-01-11  63.8  64.5  63.6  64.2 12653800     58.2
##  7 2016-01-12  64.4  64.7  63.4  63.6 12195900     57.7
##  8 2016-01-13  63.7  63.7  61.8  61.9 13725700     56.2
##  9 2016-01-14  62    63.6  61.8  63.1 12934900     57.2
## 10 2016-01-15  61.5  62.5  61.3  61.9 15174400     56.2
## # … with 1,015 more rows

Q2 How many columns (variables) are there?

There are seven columns, indicating the date, open price, high price, low price, close price, volume of stocks traded, and adjusted stock price.

Q3 Interpret the second observation?

The second observation is the day’s opening stock price.

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

This data type is numeric. Other basic data types in R are character and logical.

Q5 Plot the adjusted closing price in a line chart.

Q6 From the chart you created in Q5, briefly describe how the Walmart stock has performed since the beginning of 2019.

The stock has gone up since 2019, beginning at just over $90 per share and peaking at just over $115 per share. It is currently at about $113 per share.