Question 3

Do We need to load/ activate a package when we call a function from and r package

library(quantmod)
## Loading required package: xts
## Loading required package: zoo
## 
## Attaching package: 'zoo'
## The following objects are masked from 'package:base':
## 
##     as.Date, as.Date.numeric
## Loading required package: TTR
## Registered S3 method overwritten by 'quantmod':
##   method            from
##   as.zoo.data.frame zoo
getSymbols("MSFT")
## [1] "MSFT"

Yes

Question 4

From where can we check how a package’s function works (e.g., how getSymbols() function works)?

getSymbols("MSFT", src="yahoo", from = "2025-10-01", to = "2026-01-31")
## [1] "MSFT"

Question 5

Based on the Q3 suggested approaches, check if the following function description is correct:

getSymbols("MSFT", src = "yahoo",
           from = "2025-10-01",
           to   = "2026-01-31")
## [1] "MSFT"
nrow(MSFT)
## [1] 84

Question 8

Could you find out in which time period did Microsoft’s Open prices reach the highest?

plot(MSFT$MSFT.Open)