Description Usage Arguments Value Note Examples
View source: R/fct01_frameBuildingFuncs.R
get a list of FactorList, which is offen used in "multi-factor model builbing" or in "multifactor comparison".
1 2 3 | buildFactorLists(..., factorRefine)
buildFactorLists_lcfs(factorIDs, factorRefine = refinePar_default("none"))
|
... |
one or more FactorList. See more detail in |
factorIDs |
a character vector of factorID, available in table |
a list of FactorList
In function buildFactorLists
, the settings of factorRefine will be changed samely by the given arguments, if they are not missing.
function buildFactorLists_lcfs
give a simply and direct way to build a list of factorlist through "lcfs", given a vector of factorID. Here, the settings of factorRefine will be set samely by the given arguments, and the other settings will be get through "lcfs" (CT_FactorLists()
). See also buildFactorList_lcfs
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | FactorLists <- buildFactorLists(
buildFactorList(factorFun="gf.pct_chg_per",
factorPar=list(N=60),
factorDir=-1),
buildFactorList(factorFun="gf.float_cap",
factorPar=list(),
factorDir=-1),
buildFactorList(factorFun="gf.PE_ttm",
factorPar=list(),
factorDir=-1)
)
# - change the factor-refining method.
FactorLists2 <- buildFactorLists(
buildFactorList(factorFun="gf.pct_chg_per",
factorPar=list(N=60),
factorDir=-1),
buildFactorList(factorFun="gf.float_cap",
factorPar=list(),
factorDir=-1),
buildFactorList(factorFun="gf.PE_ttm",
factorPar=list(),
factorDir=-1),
factorRefine = refinePar_default()
)
# - through lcfs
factorIDs <- c("F000001","F000002","F000005")
FactorLists3 <- buildFactorLists_lcfs(factorIDs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.