[R] splitting a string up

stephen sefick ssefick at gmail.com
Fri Aug 21 21:50:52 CEST 2009

x <- "1041281__2009_08_20_.lev"

I would like to split this string up and only extract the leading numbers.


to use as a label for a data column in a bigger for loop function to
read in data.

Stephen Sefick

Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods.  We are mammals, and have not exhausted the
annoying little problems of being mammals.

								-K. Mullis

More information about the R-help mailing list