R - substring(): wrapper for substr()

25 Dec 2018

substring: wrapper for substr

substring(text=month.name, first=1, last=3)
# [1] "Jan" "Feb" "Mar" "Apr" "May" "Jun" "Jul" "Aug" "Sep" "Oct" "Nov" "Dec"
substr(x=month.name, start=1, stop=3)
# [1] "Jan" "Feb" "Mar" "Apr" "May" "Jun" "Jul" "Aug" "Sep" "Oct" "Nov" "Dec" 
[ R  function  string  ]