R/sql.conform.R

sql.conform <- function(string){
  string <- tolower(unlist(string)[1])
  string <- gsub("[[:punct:]]|[[:space:]]", "_", string)
  if ( length(grep("[[:digit:]]", substr(string, 1, 1))) == 1 )
    string <- paste("_", string, sep = "")
  string
}

Try the megaptera package in your browser

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

megaptera documentation built on Jan. 15, 2017, 11:19 p.m.