Skip to content
Prev 303215 / 398503 Next

named character question

It's best if you make these things available to us using dput() in the future.

You're probably looking for the substr() function.

Since _strings_ (not characters) in R are "primitive" (Not in the
primitive/internal sense: just in the primordial sense) you can't
subset them with the brackets operators: what you're doing is
something closer to

x <- 1:5

x[30: 35]

Cheers,
Michael
On Sun, Aug 12, 2012 at 10:33 PM, Erin Hodgess <erinm.hodgess at gmail.com> wrote: