[R] Extracting part of alpha numeric string

S Ellison S.Ellison at LGCGroup.com
Mon Nov 30 14:28:46 CET 2015


> Could you please explain about
> 
> sub("^([0-9]*).*$", "\\1", fields)

See ?regex and the extensive online literature on regular expressions.

S Ellison




*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}



More information about the R-help mailing list