R/custom_functions.R

Defines functions nwords_freeR

# Custom user functions


# this function comes from Chris Free's 'freeR' package, which currently
# does not work due to issues with fishbase. I have moved his function here
# so we aren not
nwords_freeR <- function(x){
  nwords <- sapply(strsplit(x, " "), length)
  return(nwords)
}
Aquatic-Food-Composition-Database/AFCD documentation built on July 29, 2024, 3:12 a.m.