R/DollarNames.R

Defines functions .DollarNames.Spectra

#' Autocompletion for Spectra Objects
#'
#' Command line completion for Spectra objects.
#'
#' @param x The \code{Spectra} object.
#' @param pattern String.  The pattern to search for.
#' @return String. A vector of element names.
#' @export
#' @importFrom utils .DollarNames
#' @noRd
#' @keywords internal
#'
.DollarNames.Spectra <- function(x, pattern = "") {
  grep(pattern, names(x), value = TRUE)
}

Try the ChemoSpec package in your browser

Any scripts or data that you put into this service are public.

ChemoSpec documentation built on April 15, 2025, 5:09 p.m.