Total newb here, but you might want to check out ?grep and ?regmatches as a
start. (ways to match and then extract substrings respectively)

On Mon, Jan 14, 2013 at 9:30 AM, Sachinthaka Abeywardana <
sachin.abeywardana@gmail.com> wrote:

> Hi all,
>
> Suppose I have a data frame with mixed content (name age and address).
>
> a<-"Name: John Smith Age: 35 Address: 32, street, sub, something"
> b<-data.frame(a)
>
> 1. The question is I want to extract the name age and
> address separately from this data frame (containing potentially more
> people).
>
> 2. Also just incase I have to deal with it how would the syntax change if I
> had "Name" as opposed to "Name:" (without the colon).
>
> Any thoughts are much appreciated.
>
> Thanks,
> Sachin
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]

