NA&gt; 45 - 64  19000  91000 17000  75000
#&gt; 18                       &lt;NA&gt;     65+  16000 118000  9000  66000
#&gt; 19 Postgraduate qualification 15 - 24   &lt;NA&gt;   6000  &lt;NA&gt;   &lt;NA&gt;
#&gt; 20                       &lt;NA&gt; 25 - 44   5000  86000  7000  60000
#&gt; 21                       &lt;NA&gt; 45 - 64   6000  55000  6000  68000
#&gt; 22                       &lt;NA&gt;     65+   &lt;NA&gt;  13000  &lt;NA&gt;  18000</div><div class='input'><span class='co'># Make a tidy repres