You can use gsub() to delete all the characters after the first
semicolon by replacing them with "". If you provide the requested
reproducible example, I imagine someone will provide you with working
code, if reading the help for gsub() isn't enough to get you going.
Sarah
On Mon, Mar 12, 2012 at
Hi,
I have a list of names (alphanumeric characters) and each row by itself
contains a different number of names seperated by a semicolon (";"). There
are also rows with no entry. I would like to have the name before the first
semicolon in each row, if there is any entry. Does anyone have an idea h
2 matches
Mail list logo