Skip to content
Prev 304262 / 398503 Next

?nchar ?strsplit

Splitting is easy:

strsplit(as.character(x$ID), "/")

That produces a list with four elements, each of which is a character
vector. R does not have a representation for "sub-columns" so you will have
to be clearer about how you want to represent the data and what you are
planning to do with it.

----------------------------------------------
David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77843-4352