FFdownload 1.2.0
New functions
FFlist(): scrapes Kenneth French’s data library and returns a tidy data frame (or tibble) of all available datasets, with columnsnameandfile_url. Thenamecolumn can be passed directly toinputlist.FFmatch(): previews fuzzy-match results for a giveninputlistbefore downloading. Returnsrequested,matched,edit_distance, andsimilaritycolumns so users can verify matches without committing to a download.FFget(): downloads a single dataset directly into the R session (no file I/O). Acceptsfrequencyandsubtablearguments to slice the desired sub-table. Appliesna_values = c(-99, -999, -99.99)by default.
Enhancements to FFdownload()
New
na_valuesparameter: replace French’s sentinel missing-value codes (e.g. −99, −999, −99.99) withNAafter numeric conversion.New
return_dataparameter: whenTRUE, returns theFFdatalist invisibly in addition to saving the.RDatafile.New
actionparameter: cleaner alternative to thedownload/download_onlyflag pair. Accepts"all","list_only","download_only", or"process_only".New
cache_daysparameter: skips re-downloading zip files intempdthat are younger than the specified number of days.New
match_thresholdparameter: emits a warning when the fuzzy-match similarity for any requested dataset falls below the threshold.
Enhancements to internal converters
-
converter()andconverter_tbl()now accept ana_valuesargument and apply sentinel replacement after numeric conversion.
New vignette
- Added
assetpricing.Rmd: a complete empirical asset pricing workflow covering time-series tests (CAPM, FF3) on 25 Size×BM portfolios, the GRS joint test, the momentum anomaly, and Fama-MacBeth cross-sectional regressions under CAPM, FF3, FF4 (Carhart), and FF5 across 100 Size×BM portfolios.
FFdownload 1.1.1
CRAN release: 2023-10-12
- Release to CRAN after previous package version has been archived due to a broken travis link.
FFdownload 1.1
- Resubmit to CRAN
- Added possibility to create list of tibbles rather than list of xts. Also added appropriate vignettes.
FFdownload 1.0.6
CRAN release: 2021-05-27
- Resubmit to CRAN
- Corrected variable names to not be similar to a corresponding command (FFdownload -> FFdata, tempdir -> tempd). This is potentially a breaking change, so I additionally included a warning message when the package is loaded.
- Also corrected date in converter for annual data to Dec of each year.
- Additionally fixed the download/download_only problem which now should be working
FFdownload 1.0.4
- Resubmit to CRAN
- wraped examples that download in
donttest{}but because cran tests this anyway (see https://stackoverflow.com/questions/63693563/issues-in-r-package-after-cran-asked-to-replace-dontrun-by-donttest) I also commented the second example which takes some time out (asdontrun()seems to also not being liked on cran)
