sred <- function(x) {
if(!length(x)) return(character(0))
y <- rep(NA_character_, length(x))
is_sred <- grepl("^\\s*SRED\\s*-", x)
if(!any(is_sred)) return(y)
x <- x[is_sred]
x <- sub("^\\s*SRED\\s*-\\s*", "", x)
y[is_sred] <- x
y
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.