getFrench.Portfolios {JFE} | R Documentation |
Download 24 asset pricing factors data from the data library of Dr. French
Description
It downloads 24 factors data used for asset pricing analysis from the data library of Dr. Kenneth R. French at Dartmouth College.
Usage
getFrench.Portfolios(filename="Portfolios_Formed_on_ME")
Arguments
filename |
The name of portfolio data file as listed in (http://mba.tuck.dartmouth.edu/pages/faculty/ken.french/data_library.html), the default is "Portfolios_Formed_on_ME". So far, this function supports retrieving 24 portfolio data files: |
Details
This function connects with <"http://mba.tuck.dartmouth.edu/pages/faculty/ken.french/data_library.html"> and downloads the specified portfolio data constructed by factors. Currently, we support on retriving and arranging 24 portfolio datasets. Sometimes, the datafile contains multiple data tables, hence the code returns a list. Since the csv spreedsheet on the web is not structured data table, it does not only contain irregular headings, but also 7, or more, data tablesr; and the trivial portfolio data tables labelled by "Portfolio Formed by ..." are omitted. Check the "table.names" of output object.
Value
data |
The data retrieved and arranged. |
table.names |
The names of data table. |
file.name |
The file name of portfolio data. |
Author(s)
Ho Tsung-wu <tsungwu@ntnu.edu.tw>, College of Management, National Taiwan Normal University.
Examples
#To save time, the example below is commented.
#output=getFrench.Portfolios(filename="5_Industry_Portfolios")
#output$file.name
#dim(output$data[[1]])
#output$data
#output$table.names