R/helpers.R

Defines functions capitalize na_replace

capitalize <- function(string) {
  paste0(substr(string, 1, 1),
         tolower(substr(string, 2, nchar(string))))
}

na_replace <- function(df) {
  df[is.na(df)] <- ""
  return(df)
}

Try the bib2df package in your browser

Any scripts or data that you put into this service are public.

bib2df documentation built on May 23, 2019, 1:03 a.m.