R Notebook

library(tidyverse)
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr     1.1.4     ✔ readr     2.1.5
✔ forcats   1.0.0     ✔ stringr   1.5.1
✔ ggplot2   3.5.2     ✔ tibble    3.3.0
✔ lubridate 1.9.4     ✔ tidyr     1.3.1
✔ purrr     1.0.4     
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(xts)
Ładowanie wymaganego pakietu: zoo

Dołączanie pakietu: 'zoo'

Następujące obiekty zostały zakryte z 'package:base':

    as.Date, as.Date.numeric


######################### Warning from 'xts' package ##########################
#                                                                             #
# The dplyr lag() function breaks how base R's lag() function is supposed to  #
# work, which breaks lag(my_xts). Calls to lag(my_xts) that you type or       #
# source() into this session won't work correctly.                            #
#                                                                             #
# Use stats::lag() to make sure you're not using dplyr::lag(), or you can add #
# conflictRules('dplyr', exclude = 'lag') to your .Rprofile to stop           #
# dplyr from breaking base R's lag() function.                                #
#                                                                             #
# Code in packages is not affected. It's protected by R's namespace mechanism #
# Set `options(xts.warn_dplyr_breaks_lag = FALSE)` to suppress this warning.  #
#                                                                             #
###############################################################################

Dołączanie pakietu: 'xts'

Następujące obiekty zostały zakryte z 'package:dplyr':

    first, last
test_prices <- readRDS("../data/prices100.RDS")



colnames(test_prices)
 [1] "Date" "KGH"  "PKO"  "PKN"  "ZAB"  "ALE"  "PEO"  "PZU"  "CDR"  "LPP" 
[11] "DNP"  "CCC"  "ALR"  "XTB"  "SPL"  "PCO"  "PGE"  "CAR"  "BDX"  "MBK" 
[21] "TPE"  "ACP"  "BFT"  "KTY"  "JSW"  "KRU"  "DIG"  "DIA"  "CPS"  "APR" 
[31] "MIL"  "RBW"  "OPL"  "DAD"  "ENA"  "ASB"  "SNT"  "IFR"  "CRI"  "TXT" 
[41] "PXM"  "BHW"  "LBW"  "CIG"  "EAT"  "APT"  "CBF"  "11B"  "ENG"  "ASM" 
[51] "TEN"  "WPL"  "GPW"  "ATT"  "MRB"  "PKP"  "FRO"  "BMC"  "MBR"  "GRX" 
[61] "ING"  "EUR"  "TRK"  "SLV"  "TOR"  "DAT"  "PEP"  "GPP"  "PLW"  "DVL" 
[71] "ELT"  "RVU"  "MDG"  "VRG"  "SCP"  "SPR"  "ECH"  "WTN"  "KER"  "TOA" 
[81] "PCR"  "BCX"  "MUR"  "LWB"  "DOM"  "NWG"  "SGN"  "4MS"  "STX"  "ENT" 
[91] "NEU"  "MLS"  "CLC"  "PAS"  "ALL"  "ICE"  "BNP"  "CRJ"