strsplit by spaces greater than one in R
<p>Given a string,</p>

<pre><code>mystr = "Average student score       88"
</code></pre>

<p>I wish to split if there are more than 1 space. I wish to obtain the following:</p>

<pre><code>"Average student score" "88"
</code></pre>

<p>I searched that "\s+" will split by any number of spaces. </p>

<pre><code>strsplit(mystr, "\\s+")
</code></pre>

<p>But this is not what I want. Is there any option within strsplit that can split strings based on a certain number of spaces (say space = k) or a rule on spaces (say space > 1)?</p>