title: Importing .txt file in R version 4.0.0 where data is enclosed in { }
body: <p>I have a .txt where the data is stored in the following format:</p>
  <p>{{1, 2, 3, 4, 5}, {10, 9, 8, 7, 6}, {1, 3, 5, 7, 9}}</p>
  <p>It is meant to be loaded as a 5x3 matrix, where the inner curly braces define the 3 vectors and the outer curly braces define the matrix.</p>
  <p>For a single vector it was simple to use the <code>scan()</code> function to load the text as a character vector then use <code>substr()</code> to remove the braces, but it seems like there has to be a package or base function that reads vectors and matrices with this notation. I unfortunately have not been able to find anything on this topic after a few hours of searching.</p>
  <p>Thanks</p>