#' Filter for a specific column in a matrix
#'
#' @param data user's dataset
#' @param colname name of column to filter for
#'
#' @return matrix with filtered column
#'
#' @export
#'
#' @examples
#' #' select(x, "gender")
select = function(data, colname)
{
datafilter = data %>% dplyr::select(contains(colname))
return(datafilter)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.