R/shapeDescriptions.R

##' Show the names and descriptions of all available shapes
##'
##' A simple function to show all the currently available shapes,
##' descriptions, and available sonic parameters for mapping data onto.
##'
##' @return A \code{data.frame} with each row representing one of the
##' shapes available for sonification, a brief description of the
##' shape, and the parameters available for sonification. 
##' @export
shapeDescriptions <- function() {
  descriptions <- sapply(allShapeDefs, function(x) x$description)
  params <- sapply(allShapeDefs, function(x) paste(names(x$params), collapse=", "))
  return(cbind(descriptions, params))
}
  

Try the playitbyr package in your browser

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

playitbyr documentation built on May 2, 2019, 6:08 p.m.