#' Takes a noun and makes it plural
#'
#' @param num An integer
#' @param num_word A string corresponding to the integer
#' @param item A string
#' @param verb A string
#' @param adjective A string
#' @param location A string
#'
#' @return A string containing the words in grammatical order.
#'
#' @import stringr
#' @import glue
#' @import dplyr
#' @import purrr
#' @import english
#'
#' @export
make_phrase <- function(num, num_word, item, verb, adjective, location){
verb <- str_replace_na(verb, "")
adjective <- str_replace_na(adjective, "")
location <- str_replace_na(location, "")
phrase <- glue("{num_word} {adjective} {item} {verb} {location}")
phrase <- str_replace_all(phrase, " ", " ")
return(phrase)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.