<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="">Walmes agradeço, mas talvez eu não tenha explicado o problema direito, vou tentar com um exemplo</span></div><div 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;" class=""><span class="" style=""><br class="" style=""></span></div><div 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;" class=""><span class="" style=""><br class="" style=""></span></div><div style="background-color:
 transparent;" class="">O problema é o seguinte</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class="">Preciso passar como parâmetro de uma função <span style="font-weight: bold;">uma matriz</span> que possui nos seus </div><div style="background-color: transparent;" class="">elementos uma variável <span style="font-weight: bold;">p</span>, como no seguinte exemplo:</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class="">A = cbind(c(p+5, 6),</div><div style="background-color: transparent;" class="">               c(10, p+8))</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class="">calcular_matrizes (A)</div><div style="background-color: transparent;"
 class=""><br class="" style=""></div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class="">dentro da função <span style="font-weight: bold;" class="">calcular_matrizes</span> tenho que achar valores para essa matriz variando o <span style="font-weight: bold;" class="">p</span>.</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class="">A pergunta é, como passar esse parâmetro, <span style="font-weight: bold;" class="">no caso a matriz A</span> na função, sem dar erro de que a variável <span style="font-weight: bold;" class="">p</span> não foi definida? (object 'p' not found).</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
 font-style: normal;" class=""><br></div><div style="background-color: transparent;" class=""><span class="" style=""></span></div><div style="background-color: transparent;" class=""><br class="" style=""></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 Quarta-feira, 4 de Junho de 2014 21:19, walmes . <walmeszeviani@gmail.com> escreveu:<br class="" style=""> </font> </div>  <br class="" style=""><br class="" style=""> <div class=""
 style=""><div id="yiv9389621848" class="" style=""><div class="" style=""><div dir="ltr" class="" style=""><div class="" style="font-family:trebuchet ms, sans-serif;">Bem, pode fazer<br clear="none" class="" style=""><br clear="none" class="" style=""></div><div class="" style="font-family:trebuchet ms, sans-serif;">x <- NULL<br clear="none" class="" style=""><br clear="none" class="" style=""></div><div class="" style="font-family:trebuchet ms, sans-serif;">
O objeto x é criado mas não representa valor nenhum.<br clear="none" class="" style=""><br clear="none" class="" style="">À disposição.<br clear="none" class="" style=""></div><div class="" style="font-family:trebuchet ms, sans-serif;">Walmes<div class="" id="yiv9389621848yqtfd77687" style=""><br clear="none" class="" style=""></div></div><div class="" id="yiv9389621848yqtfd66808" style="">​</div></div></div></div><br class="" style=""><br class="" style=""></div>  </div> </div>  </div> </div></body></html>