Description Usage Arguments Value Author(s) See Also Examples
View source: R/pub03_DatabaseOperationFuncs.R
add/update one factorscore column in local sqlite table "QT_FactorScore"
. On the same time, correspondingly, add/update a record into table "CT_FactorLists"
and table "CT_TechVars"
.
1 2 3 | lcfs.add(factorFun, factorPar = "", factorDir, factorID,
factorName = default.factorName(factorFun, factorPar, factorDir),
factorType = "", factorDesc = "", splitNbin = "month")
|
factorFun |
a character string naming the function to get the factor scores |
factorPar |
a character string, containing the parameters of the |
factorDir |
a integer,should be 1 or -1 (1 for the positive factor,-1 for the negative one). Note that the |
factorID |
a character string |
factorName |
a character string. IF missing, then take a default name by function |
factorType |
a character string |
factorDesc |
a character string |
splitNbin |
a character of interval specification(see |
Write data into the local sqlite database, returning NULL.
Ruifei.Yin
getTSF
,modelPar.factor
, lcdb.update.QT_FactorScore
1 | system.time(lcfs.add(factorFun="gf.F_rank_chg",factorPar="lag=60,con_type=\"1,2\"", factorDir=1, factorID="F000999"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.