Nothing
#' Subsets a data using bracket notation
#'
#' A wrapper function for bracket notation on two-dimensional objects, with bracketing on the columns.
#'
#' @param data_object a data object
#' @param index a character, logical, or numeric vector
#' @param ... additional arguments passed to `[`
#'
#' @returns a subset of the data
#' @export
#'
#' @examples
#' # load package
#' data(nhanes)
#'
#' # look at the first few values of dmdborn4
#' nhanes |> col_bracket('dmdborn4') |> head()
col_bracket<-function(data_object,index,...){
data_object[,index,...]
}
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.