#' Convert negative values in the signal to corresponding positive values.
#'
#' @param data a numeric. A numeric vector containing the raw signal.
#'
#' @return A numeric vector containing the modified signal.
#'
rectify <- function(data){
data <- abs(data)
return(data)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.