I have the following string:
[1] "10012      ----      ----      ----      ----       CAB    UNCH                    CAB"
I want to split this string by the gaps, but the gaps have a variable number of spaces. Is there a way to use strsplit() function to split this string and return a vector of 8 elements that has removed all of the gaps?
One line of code is preferred.
 
     
     
     
    