I have the following list of strings:

x <- c("foo, foo2, foo3", "bar", "qux, qux1")

what I want to do is to obtain

foo, bar qux

Namely for each element in the vector obtain only string
before the first comma.

What's the way to do it?

- G.V.

	[[alternative HTML version deleted]]

