WhichCols | R Documentation |
Determine which columns contain indic.var
or indic.grp
in an
object returned by ptycho
.
indicVarCols(obj)
indicGrpCols(obj)
obj |
Object output by |
If the input object is a numeric vector, returns the indices of its entries that have names starting with “indic.var” or “indic.grp”, respectively.
Otherwise, it returns the indices of colnames(obj)
that start with
“indic.var” or “indic.grp”, respectively.
Laurel Stell and Chiara Sabatti
Maintainer: Laurel Stell <lstell@stanford.edu>
ptycho
; also ptychoOut
and
PosteriorStatistics for example below
data(ptychoOut)
colnames(ptychoOut)[indicVarCols(ptychoOut)]
# Can also apply these functions to output of meanIndicators ...
mi <- meanIndicators(ptychoOut)
mi[indicGrpCols(mi)]
# ... instead of using meanGrpIndicators or meanVarIndicators
meanGrpIndicators(ptychoOut)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.