library(quantmod)
Question 5
?getSymbols
## starting httpd help server ... done
- This led me to see that current src methods available are: yahoo,
google, MySQL, FRED, csv, RData, oanda, and av
Question 6
getSymbols("MSFT", src="yahoo",from = "2025-10-01", to = "2026-01-31")
## [1] "MSFT"
- This code returns the daily stock prices for Microsoft (MSFT) during
2025-10-01 ~ 2026-01-31 and ensures that the ending date of 2026-01-31
is included.
Question 8
plot(MSFT$MSFT.Open, type="l")

- By making this plot, I can see in which period Microsoft’s Open
prices were the highest by looking at where the plot peaks.