O <b>ceiling</b> no R é o mesmo que <b>ceil</b> no SAS???<br><br>A sequencia abaixo também está retornando erro...<br><br><br>## Simulacao de dados<br>set.seed(456)<br>n <- 50<br>
var <- 150<br><br>  for (i in 1000:2000)<br>    {<br>    x [i,1] <- i<br>    x [i,2] <- ceiling (runif(1)*60)<br>    x [i,3] <- ceiling (runif(1)*50)+60<br>    b [i] <- ceiling (runif(1)*2)<br>    }<br><br>
<br>ERRO:<br><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: 'Lucida Console'; font-size: 16px; line-height: 20px; text-align: -webkit-left; white-space: pre-wrap; "><pre tabindex="0" class="GD40030CLR" style="font-family: 'Lucida Console'; font-size: 12pt !important; outline-style: none; outline-width: initial; outline-color: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; white-space: pre-wrap !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 1.3; ">
<span class="GD40030CGR">Erro em x[i, 1] <- i : índice fora de limites</span></pre></span></span><b><br>Que limites???</b><br><br>Obrigado<br><br>Ricardo<br>