<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><div class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#0D0D0D;
mso-themecolor:text1;mso-themetint:242">Pessoal, estou tentando nomear linhas
de matrizes em uma lista de matrizes. <o:p></o:p></span></div>
<div class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#0D0D0D;
mso-themecolor:text1;mso-themetint:242">Alguém tem a solução?<o:p></o:p></span></div>
<div class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:red"><o:p> </o:p></span></div>
<div class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:red"># Dados<o:p></o:p></span></div>
<div class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:red">m1=matrix(c(1,2,4,5,7,8),
nc=2)<o:p></o:p></span></div>
<div class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:red">m2=matrix(c(1,5),
nc=2)<o:p></o:p></span></div>
<div class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:red">l=list(m1,m2)<o:p></o:p></span></div>
<div class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman","serif";
color:red;mso-ansi-language:EN-US">n=factor(letters[1:4])<o:p></o:p></span></div>
<div class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman","serif";
color:red;mso-ansi-language:EN-US">n1=lapply(levels(n), list)<o:p></o:p></span></div>
<div class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></div>
<div class="MsoNormal"><b><span style="font-size:14.0pt;font-family:
"Times New Roman","serif";color:red;background:yellow;mso-highlight:yellow">#
resultado que quero obter usando lapply se possível ou outro recurso<o:p></o:p></span></b></div>
<div class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";background:yellow;
mso-highlight:yellow">rownames(m1)=n[c(1,2,3)]<o:p></o:p></span></div>
<div class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";background:yellow;
mso-highlight:yellow">rownames(m2)=n[4]<o:p></o:p></span></div>
<div class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";background:yellow;
mso-highlight:yellow">l=list(m1,m2)</span><span style="font-size:12.0pt;
font-family:"Times New Roman","serif""><o:p></o:p></span></div></div></div></body></html>