View source: R/07dataDownload.R
getFrench.Portfolios | R Documentation |
It downloads 24 factors data used for asset pricing analysis from the data library of Dr. Kenneth R. French at Dartmouth College.
getFrench.Portfolios(filename="Portfolios_Formed_on_ME")
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: |
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.
data |
The data retrieved and arranged. |
table.names |
The names of data table. |
file.name |
The file name of portfolio data. |
Ho Tsung-wu <tsungwu@ntnu.edu.tw>, College of Management, National Taiwan Normal University.
output=getFrench.Portfolios(filename="5_Industry_Portfolios") output$file.name dim(output$data[[1]]) output$data output$table.names
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.