How to split everything after second whitespace char using regular
expression? I want to remove A, B, C and D from these names:

nam <- c("Smith John A", "Smith David B C", "Smith Ryan C D")

Thanks,
Johannes

______________________________________________
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.

Reply via email to