title: How to remove square parentheses and text within from strings in R
body: <p>I have encounter a problem in R language to process a data frame (<code>test_dataframe</code>) column (<code>test_column</code>) value like below:<br>
  Original strings in the column:</p>
  
  <pre><code>test_column
  6.77[9]
  5.92[10]
  2.98[103]
  </code></pre>
  
  <p>I need to <strong>remove square brackets and any character inside square brackets</strong>, so the target value is below:  </p>
  
  <pre><code>test_column
  6.77
  5.92
  2.98
  </code></pre>
  
  <p>I tried with <code>gsub</code> function in R language, but not very lucky to resolve it, could someone help to figure out ?</p>