R/note_names.R

Defines functions note_names

Documented in note_names

#' Return the names of all notes in an experiment
#'
#' @param x A \code{softermax.experiment} object containing information
#' about an experiment in 'SoftMax Pro'
#'
#' @return A vector of strings
#' @export
#'
#' @examples
#' \dontrun{
#' d <- read_softmax_xml("myfile.xml")
#' note_names(d$experiments[[1]])
#' }
note_names <- function(x) {
    vapply(
        X = x$notes,
        FUN = function(x) attr(x, "name"),
        FUN.VALUE = character(1),
        USE.NAMES = FALSE
    )
}

Try the softermax package in your browser

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

softermax documentation built on Sept. 21, 2017, 9:03 a.m.