[R] Regexp question

johannes rara johannesraja at gmail.com
Wed May 4 21:41:36 CEST 2011


I have a string like this

st <- "SELECT COUNT(empid), COUNT(mgrid), COUNT(empname),
COUNT(salary), FROM Employees"

How can I remove the last comma before the FROM statement?

-J



More information about the R-help mailing list