[R] Character operations, strsplit()

From: Srinivas Iyyer <srini_iyyer_bio_at_yahoo.com>
Date: Sat 03 Dec 2005 - 08:22:12 EST


Dear group,

could some one help me how i can split a string into pieces and access them.

For example:
> test = "this is a test"
> typeof(test)

[1] "character"

> strsplit(test,split='is')

[[1]]
[1] "th" " " " a test"

Now I want to get test into : a vector and another object as list

Also, could you please point out some good tutorials on character manipulations.

Thank you.                 


Just $16.99/mo. or less.
dsl.yahoo.com



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Dec 03 12:19:25 2005

This archive was generated by hypermail 2.1.8 : Sat 03 Dec 2005 - 14:28:15 EST