<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div class="" style=""><span class="" style="">Oi Eder, sua função só atenderia para o caso da matriz especifica</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span class="" style=""><br></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span class="" style=""> </span><span style="font-family: 'courier new', monospace; font-size: 10pt;" class="">cbind(c(p+5, 6), c(10,
p+8)) </span></div><div class="" style="color: rgb(0, 0, 0); font-size: 10pt; font-family: 'courier new', monospace; background-color: transparent; font-style: normal;"><span style="font-family: 'courier new', monospace; font-size: 10pt;" class=""><br></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 10pt; font-family: 'courier new', monospace; background-color: transparent; font-style: normal;"><span style="font-family: 'courier new', monospace; font-size: 10pt;" class="">no entanto no meu problema a matriz pode vir de outras formas, dependendo do problema, por isso que ela é parâmetro da função.</span></div><div class="" style=""></div><div class="" style=""> </div><div class="" style=""><span style="color:rgb(0, 0, 255);font-style:italic;font-weight:bold;font-family:times new roman, new york, times, serif;" class="">Waldelene Moura</span><br style="color:rgb(0, 0, 255);font-style:italic;font-family:times new roman, new
york, times, serif;" class=""><span style="color:rgb(0, 0, 255);font-style:italic;font-family:times new roman, new york, times, serif;" class="">Analista de Sistemas</span><br style="color:rgb(0, 0, 255);font-style:italic;font-family:times new roman, new york, times, serif;" class=""><span style="color:rgb(0, 0, 255);font-style:italic;font-family:times new roman, new york, times, serif;" class="">Universidade Federal do Maranhão - PROEN</span><br style="color:rgb(0, 0, 255);font-style:italic;font-family:times new roman, new york, times, serif;" class=""></div><div style="font-family:'times new roman', 'new york', times, serif;font-style:italic;" class=""><span style="color:rgb(0, 0, 255);" class=""> </span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 10pt;"
class=""> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;" class=""> <div dir="ltr" class="" style=""> <font size="2" face="Arial" class="" style=""> Em Quinta-feira, 5 de Junho de 2014 11:52, Éder Comunello <comunello.eder@gmail.com> escreveu:<br class="" style=""> </font> </div> <br class="" style=""><br class="" style=""> <div class="" style=""><div id="yiv3769140655" class="" style=""><div class="" style=""><div dir="ltr" class="" style="">Waldelene, bom dia!<div class="" style=""><br clear="none" class="" style=""></div><div class="" style="">Verifique se atende:</div><div class="" style=""><br clear="none" class="" style=""><div class="" style=""><div class="" style=""><font face="courier new, monospace" class="" style="">### <code r></font></div><div class="" style=""><font face="courier new, monospace" class="" style="">calcular_matrizes <- function(p)
cbind(c(p+5, 6), c(10, p+8))</font></div>
<div class="" style=""><font face="courier new, monospace" class="" style=""><br clear="none" class="" style=""></font></div><div class="" style=""><font face="courier new, monospace" class="" style="">### testes</font></div><div class="" style=""><font face="courier new, monospace" class="" style="">calcular_matrizes(3)</font></div><div class="" style=""><font face="courier new, monospace" class="" style="">calcular_matrizes(4)</font></div>
<div class="" style=""><font face="courier new, monospace" class="" style="">lapply(1:5, calcular_matrizes)</font></div><div class="" style=""><font face="courier new, monospace" class="" style=""><br clear="none" class="" style=""></font></div><div class="" style=""><font face="courier new, monospace" class="" style="">### atribuindo o resultado à uma variável</font></div>
<div class="" style=""><font face="courier new, monospace" class="" style="">A <- calcular_matrizes(3); A</font></div><div class="" style=""><span style="font-family:'courier new', monospace;" class="">### </code></span></div></div></div><div class="" style=""><br clear="all" class="" style="">
<div class="" style=""><div dir="ltr" class="" style="">Éder Comunello <<a rel="nofollow" shape="rect" ymailto="mailto:comunello.eder@gmail.com" target="_blank" href="mailto:comunello.eder@gmail.com" class="" style="">c</a><a rel="nofollow" shape="rect" ymailto="mailto:omunello.eder@gmail.com" target="_blank" href="mailto:omunello.eder@gmail.com" class="" style="">omunello.eder@gmail.com</a>> <br clear="none" class="" style="">Dourados, MS - [22 16.5'S, 54 49'W]<div class="" id="yiv3769140655yqtfd41698" style=""><br clear="none" class="" style="">
</div></div></div><div class="" id="yiv3769140655yqtfd91105" style="">
<br clear="none" class="" style=""><br clear="none" class="" style=""></div></div></div></div></div><br class="" style=""><br class="" style=""></div> </div> </div> </div> </div></body></html>