1. Once you have the character vector from the regex, see ?strsplit to get the strings on either side of the "->" . You may have to fiddle a bit if one or the other side is empty.
You can then format the results as you like. 2. "Graphical representation similar to this" is too vague a specification to be meaningful. Cheers, Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.