mp_dmngroup | R Documentation |
Dirichlet-Multinomial generative classifiers to MPSE or tbl_mpse
mp_dmngroup(.data, .abundance, .group, k = 1, action = "get", ...)
## S4 method for signature 'MPSE'
mp_dmngroup(.data, .abundance, .group, k = 1, action = "get", ...)
## S4 method for signature 'tbl_mpse'
mp_dmngroup(.data, .abundance, .group, k = 1, action = "get", ...)
## S4 method for signature 'grouped_df_mpse'
mp_dmngroup(.data, .abundance, .group, k = 1, action = "get", ...)
.data |
MPSE or tbl_mpse object |
.abundance |
The column name of OTU abundance column to be calculate. |
.group |
the column name of group variable. |
k |
the number of Dirichlet components to fit, default is 1. |
action |
character it has three options, 'get' return a 'list' contained DMN (default), "add" joins the new information to the input (can be extracted with mp_extract_internal_attr(name='DMNGroup')), "only" return a non-redundant tibble with the just new information a column contained 'DMNGroup'. |
... |
additional parameters, see also the |
update object or others (refer to action argument)
## Not run:
data(mouse.time.mpse)
mouse.time.mpse %>%
mp_dmngroup(
.abundance = Abundance,
.group = time,
k=seq_len(2),
action = 'get'
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.