Nothing
#' Make design matrix
#'
#' @param phyloseq_object A phyloseq object
#' @param variables variable names
#'
#' @return A matrix object giving the design matrix from the desired variables.
#'
#' @importFrom phyloseq sample_data
#' @importFrom phyloseq get_variable
#'
#' @export
make_design_matrix <- function(phyloseq_object, variables) {
predictors <- phyloseq_object %>% sample_data %>% get_variable(variables)
model.matrix( ~predictors, data = predictors %>% as.data.frame)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.