Description Usage Arguments Author(s) Examples
check colnames of an object with data.frame class, eg. TS, TSF, TSFR, ... Return error when the elements of coltest is not contained in the colnames of data
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | check.colnames(data, coltest)
usualcols()
is_usualcols(cols)
guess_factorNames(df, no_factorname = NULL, is_factorname = NULL,
silence = FALSE)
check.TS(TS)
check.rptTS(rptTS)
check.TSF(TSF)
check.TSFR(TSFR)
check.Port(port)
check.SP(SP)
check.TSS(TSS)
|
data |
a dataframe or matrix,with some colnames |
coltest |
a character vector containing the colnames to be checked |
Ruifei.Yin
1 2 3 4 5 | df <- data.frame(a=1,b=2)
check.colnames(df,c("a","b"))
check.colnames(df,c("a","c"))
df <- data.frame(a=1,b=2,c=3,date=9,factorscore=0)
guess_factorNames(df,no_factorname = "c",is_factorname = "factorscore")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.