\begin{Schunk}
\begin{Sinput}
 head(cities2, 5)
\end{Sinput}
\begin{Soutput}
[1] "Dallas TX" "Denver CO" "Austin TX" "Salem OR"  "Salem MA" 
\end{Soutput}
\begin{Sinput}
 cities3 <- gsub(" ..$", "", cities2) 
 head(cities3, 5)
\end{Sinput}
\begin{Soutput}
[1] "Dallas" "Denver" "Austin" "Salem"  "Salem" 
\end{Soutput}
\end{Schunk}
