The following objects are masked from 'package:base':
date, intersect, setdiff, union
Loading required package: PerformanceAnalytics
Loading required package: xts
Loading required package: zoo
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
Attaching package: 'PerformanceAnalytics'
The following object is masked from 'package:graphics':
legend
Loading required package: quantmod
Loading required package: TTR
Registered S3 method overwritten by 'quantmod':
method from
as.zoo.data.frame zoo
== Need to Learn tidyquant? ====================================================
Business Science offers a 1-hour course - Learning Lab #9: Performance Analysis & Portfolio Optimization with tidyquant!
</> Learn more at: https://university.business-science.io/p/learning-labs-pro </>
v ggplot2 3.3.5 v purrr 0.3.4
v tibble 3.2.1 v dplyr 1.1.2
v tidyr 1.2.0 v stringr 1.5.0
v readr 2.1.2 v forcats 0.5.1
-- Conflicts ------------------------------------------ tidyverse_conflicts() --
x lubridate::as.difftime() masks base::as.difftime()
x lubridate::date() masks base::date()
x dplyr::filter() masks stats::filter()
x dplyr::first() masks xts::first()
x lubridate::intersect() masks base::intersect()
x dplyr::lag() masks stats::lag()
x dplyr::last() masks xts::last()
x lubridate::setdiff() masks base::setdiff()
x lubridate::union() masks base::union()
AMZN <-tq_get("AMZN", from ="2022-01-01", to ="2022-12-31")AMZN