Skip to content

Commit

Permalink
#85 #86 uncommented lines assigning fixed sectors to data objects, ad…
Browse files Browse the repository at this point in the history
…ded compression alogorithms, and updated the data sets
  • Loading branch information
impartial-spec committed Jul 16, 2022
1 parent 63eca65 commit cc6e196
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions data/factorsSPGMI.rda
Git LFS file not shown
4 changes: 2 additions & 2 deletions data/stocksCRSP.rda
Git LFS file not shown
11 changes: 6 additions & 5 deletions sandbox/Vestcor Data Cleaning/spinnj_issue86.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit cc6e196

Please sign in to comment.