<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div>Caros,</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">alguém conhece alguma função no R que possa substituir a função scan()?</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">No sentido de que a função scan() precisa de um file para fazer scan, ou então voce digitar todos os valores (segundo o que eu entendo).<br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
 background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">Por exemplo:</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent;">tenho um object de classe list, e gostaria de ler este objeto, sem precisar salvá-lo em file primeiro, ou sem precisar digitá-lo.</span><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent;"><br></span></div><div style="color: rgb(0, 0, 0); font-size:
 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent;"><span style="color: rgb(68, 68, 68); font-family: 'Lucida Console', 'courier new', monospace; font-size: 12px; line-height: 19.1875px; white-space: nowrap; background-color: rgb(252, 252, 249);">n = c(2, 3, 5) </span><br style="padding: 0px; margin: 0px; color: rgb(68, 68, 68); font-family: 'Lucida Console', 'courier new', monospace; font-size: 12px; line-height: 19.1875px; white-space: nowrap;"><span style="color: rgb(68, 68, 68); font-family: 'Lucida Console', 'courier new', monospace; font-size: 12px; line-height: 19.1875px; white-space: nowrap; background-color: rgb(252, 252, 249);">s = c("aa", "bb", "cc", "dd", "ee") </span></span></div><div style="color: rgb(68, 68, 68); font-size: 12px;
 font-family: 'Lucida Console', 'courier new', monospace; background-color: rgb(252, 252, 249); font-style: normal;"><span style="background-color: transparent;"><span style="color: rgb(68, 68, 68); font-family: 'Lucida Console', 'courier new', monospace; font-size: 12px; line-height: 19.1875px; white-space: nowrap; background-color: rgb(252, 252, 249);">b = c(TRUE, FALSE, TRUE, FALSE, FALSE) </span><br style="padding: 0px; margin: 0px; color: rgb(68, 68, 68); font-family: 'Lucida Console', 'courier new', monospace; font-size: 12px; line-height: 19.1875px; white-space: nowrap;"><span style="color: rgb(68, 68, 68); font-family: 'Lucida Console', 'courier new', monospace; font-size: 12px; line-height: 19.1875px; white-space: nowrap; background-color: rgb(252, 252, 249);">object
 = list(n, s, b, 3)   # x contains copies of n, s, b</span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">eu gostaria poder fazer scan(object), existe algo semelhante que funcione?!</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">Obrigada,</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande',
 sans-serif; background-color: transparent; font-style: normal;">Fernanda</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><br></div></div></body></html>