How to remove characters from a column and then split the column in R : <p>I have a df called <code>Violations</code>. One of its columns, <code>Violations$Location</code>, has lat, long coordinates written like this for eg.:  <code>POINT (-7423249 453982)</code>. I just want to remove the <code>"POINT "</code> and the brackets. </p>

<p>I've tried <code>gsub</code> but that always converts the result into a character and when I try to return that into a dataframe it makes a messy horizontal dataframe.</p>

<p>The outcome I want is to have one column called <code>lat</code> with rows such as this: 
<code>-742349</code>  and another column called <code>long</code> with the columns written as <code>453982</code>. How do I do this?  </p>
