R/stringutils.r

# Author: Jorrel Khalil S. Aunario, jaunario@gmail.com
# Date :  21 February 2012
# Version 0.0.1
# Licence GPL v3

strToChar <- function(str){
  return(unlist(strsplit(str,"")))
}

serialn <- function(x, width=2){    
  # Just use sprintf
  return(sprintf(paste("%0",width,"d",sep=""),x))
}

Try the genutils package in your browser

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

genutils documentation built on May 2, 2019, 5:22 p.m.