4. Checking the functions of a package

#install.packages("tinytex")

5. testing get symbols function

library(quantmod)
getSymbols("AAPL", source = "yahoo")

head(AAPL)

6. using getsymbols to check daily stock prices for specific dates

getSymbols("MSFT", src="yahoo",from = "2025-10-01", to = "2026-01-31")
write.csv(MSFT)

8. Finding out which period has the highest prices

plot(MSFT$MSFT.Open)