From cc6e196735f35cb0f165b3e200d5943e75939621 Mon Sep 17 00:00:00 2001 From: impartial-spec Date: Fri, 15 Jul 2022 23:36:24 -0500 Subject: [PATCH] #85 #86 uncommented lines assigning fixed sectors to data objects, added compression alogorithms, and updated the data sets --- data/factorsSPGMI.rda | 4 ++-- data/stocksCRSP.rda | 4 ++-- sandbox/Vestcor Data Cleaning/spinnj_issue86.R | 11 ++++++----- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/data/factorsSPGMI.rda b/data/factorsSPGMI.rda index ba047f0a..4b68482b 100644 --- a/data/factorsSPGMI.rda +++ b/data/factorsSPGMI.rda @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4302e12c2522bcb8d4dd122aae20432848839554822a9882e39dd8f5b20bb9ff -size 3993824 +oid sha256:a11f9b2ac11b96e993d521c331c73a85f1f1b7e173ce25eb8d8890575fee2f40 +size 3993060 diff --git a/data/stocksCRSP.rda b/data/stocksCRSP.rda index 0f4d91be..b1e91083 100644 --- a/data/stocksCRSP.rda +++ b/data/stocksCRSP.rda @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6ea6c0834eea68f480946591e96099e22f89ae7776ea6471a558f6084a01d154 -size 946632 +oid sha256:1a37dd7ffac9820ceed6601135e776edcf98e0c77e08fc8214bed5391b00e5b9 +size 940896 diff --git a/sandbox/Vestcor Data Cleaning/spinnj_issue86.R b/sandbox/Vestcor Data Cleaning/spinnj_issue86.R index d86e21e9..708ce1a9 100644 --- a/sandbox/Vestcor Data Cleaning/spinnj_issue86.R +++ b/sandbox/Vestcor Data Cleaning/spinnj_issue86.R @@ -37,8 +37,9 @@ stocksCRSP_tmp$Sector <- sector_table$GoodSectors[match(stocksCRSP_tmp$Sector,se unique(factorsSPGMI_tmp$Sector) # contains 11 sectors with no dupes unique(stocksCRSP_tmp$Sector) # contains 11 sectors with no dupes -# save data (not yet run) -#factorsSPGMI <- factorsSPGMI_tmp -#stocksCRSP <- stocksCRSP_tmp -#save(factorsSPGMI,file="./data/factorsSPGMI.rda") -#save(stocksCRSP,file="./data/stocksCRSP.rda") +# save data +factorsSPGMI <- factorsSPGMI_tmp +stocksCRSP <- stocksCRSP_tmp +# added compression args, using xz algorithm of the highest level +save(factorsSPGMI, file="./data/factorsSPGMI.rda", compress = "xz", compression_level = 9) +save(stocksCRSP, file="./data/stocksCRSP.rda", compress = "xz", compression_level = 9)