#' firstnumpos
#'
#' Identify word position of first number in string
#' @param str1 string 1
#' @export
firstnumpos <- function(str1){
min(which(!is.na(suppressWarnings(as.numeric(str_split(trimws(gsub(" "," ",str1)), " ", simplify = TRUE))))))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.