<div dir="ltr">Pessoal:<div>para o seguinte df:</div><div><br></div><div>df <- data.frame(nome = c("NOME_1", "NOME_1", "NOME_1", <br>                             "NOME_2", "NOME_2", "NOME_2", "NOME_2", "NOME_2", <br>                             "NOME_3", "NOME_3", "NOME_3", "NOME_3", "NOME_3"),<br>curso = c("INFORMÁTICA INICIAL", "INFORMÁTICA_NÍVEL_2", "PIZZAS TRADICIONAIS", <br>          "DESIGN DE SOBRANCELHA", "INFORMÁTICA INICIAL", "INFORMÁTICA_NÍVEL_1", "INFORMÁTICA_NÍVEL_2", "PIZZAS TRADICIONAIS",<br>          "DESIGN DE SOBRANCELHA", "INFORMÁTICA INICIAL", "INFORMÁTICA_NÍVEL_1", "INFORMÁTICA_NÍVEL_2", "BARBEARIA"))<br><br></div><div><br></div><div>
        
        
        



<table cellspacing="0" border="0" style="font-family:"Liberation Sans";font-size:x-small">
        <colgroup width="82"></colgroup>
        <colgroup width="219"></colgroup>
        <tbody><tr>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" height="17" align="center" valign="bottom"><b><font face="Calibri" color="#000000">nome</font></b></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="center" valign="bottom"><b><font face="Calibri" color="#000000">curso</font></b></td>
        </tr>
        <tr>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" height="17" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">NOME_1</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">INFORMÁTICA INICIAL</font></td>
        </tr>
        <tr>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" height="17" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">NOME_1</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">INFORMÁTICA_NÍVEL_2</font></td>
        </tr>
        <tr>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" height="17" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">NOME_1</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">PIZZAS TRADICIONAIS</font></td>
        </tr>
        <tr>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" height="17" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">NOME_2</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">DESIGN DE SOBRANCELHA</font></td>
        </tr>
        <tr>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" height="17" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">NOME_2</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">INFORMÁTICA INICIAL</font></td>
        </tr>
        <tr>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" height="17" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">NOME_2</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">INFORMÁTICA_NÍVEL_1</font></td>
        </tr>
        <tr>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" height="17" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">NOME_2</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">INFORMÁTICA_NÍVEL_2</font></td>
        </tr>
        <tr>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" height="17" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">NOME_2</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">PIZZAS TRADICIONAIS</font></td>
        </tr>
        <tr>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" height="17" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">NOME_3</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">DESIGN DE SOBRANCELHA</font></td>
        </tr>
        <tr>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" height="17" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">NOME_3</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">INFORMÁTICA INICIAL</font></td>
        </tr>
        <tr>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" height="17" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">NOME_3</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">INFORMÁTICA_NÍVEL_1</font></td>
        </tr>
        <tr>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" height="17" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">NOME_3</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">PIZZAS TRADICIONAIS</font></td>
        </tr>
        <tr>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" height="17" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">NOME_3</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">BARBEARIA</font></td>
        </tr>
</tbody></table><br></div><div><br></div><div>Preciso desmembrar as linhas do curso, por nome, em colunas, respeitando os nomes dos alunos, de tal forma que resulte em:</div><div><br></div><div><br></div><div>
        
        
        



<table cellspacing="0" border="0" style="font-family:"Liberation Sans";font-size:x-small">
        <colgroup width="74"></colgroup>
        <colgroup width="219"></colgroup>
        <colgroup span="3" width="187"></colgroup>
        <colgroup width="179"></colgroup>
        <tbody><tr>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" height="17" align="center" valign="bottom"><b><font face="Calibri" color="#000000">aluno</font></b></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="center" valign="bottom"><b><font face="Calibri" color="#000000">curso</font></b></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="center" valign="bottom"><b><font face="Calibri" color="#000000">curso_1</font></b></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="center" valign="bottom"><b><font face="Calibri" color="#000000">curso_2</font></b></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="center" valign="bottom"><b><font face="Calibri" color="#000000">curso_3</font></b></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="center" valign="bottom"><b><font face="Calibri" color="#000000">curso_4</font></b></td>
        </tr>
        <tr>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" height="17" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">NOME_1</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="left">INFORMÁTICA INICIAL</td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="center" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">INFORMÁTICA_NÍVEL_2</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="center" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">PIZZAS TRADICIONAIS</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="left"><br></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="left"><br></td>
        </tr>
        <tr>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" height="17" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">NOME_2</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="center" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">DESIGN DE SOBRANCELHA</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="center" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">INFORMÁTICA INICIAL</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="center" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">INFORMÁTICA_NÍVEL_1</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="center" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">INFORMÁTICA_NÍVEL_2</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="center" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">PIZZAS TRADICIONAIS</font></td>
        </tr>
        <tr>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" height="17" align="left" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">NOME_3</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="center" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">DESIGN DE SOBRANCELHA</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="center" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">INFORMÁTICA INICIAL</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="center" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">INFORMÁTICA_NÍVEL_1</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="center" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">PIZZAS TRADICIONAIS</font></td>
                <td style="border-width:1px;border-style:solid;border-color:rgb(0,0,0)" align="center" valign="bottom" bgcolor="#FFFFFF"><font face="Arial" color="#000000">BARBEARIA</font></td>
        </tr>
</tbody></table></div><div><br></div><div>O banco que tenho é enorme e  um mesmo aluno pode ter realizado mais de 15 cursos.</div><div><br></div><div>Desde já agradeço.</div><div><br></div></div>