<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hola Miguel<div><br><div>Desde luego depende de la memoria que tengas en la máquina. Aún así lo que preguntas creo que se puede hacer utilizando "what" en scan.</div><div><br></div><div>datos <- scan("fichero.dat",what=list(" "," ",0))</div><div><br></div><div>La idea es la siguiente: la lista que va en el what da una descripción de cómo son las columnas que tienes. Pon un " " por cada columna alfanumérica y un 0 por una columna numérica. En el ejemplo anterior tendrías 2 columnas alfanumérica y una numérica.</div><div><br></div><div>Un saludo</div><div><br></div><div><div><div>El 28/01/2012, a las 21:33, Miguel Astor Varela escribió:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hola,<br>Estoy intentando leer ficheros csv bastante grandes (más un 1 Giga). Hasta<br>ahora con archivos más pequeños siempre he utilizado la función read.csv y<br>me ha funcionado bastante bien, pero a partir de ese tamaño el R se me<br>queda bloqueado. Además, el ordenador que tengo no es nada potente.<br><br>He probado con la función scan pero tengo un problema. Los ficheros csv son<br>campos numéricos con decimales salvo un campo que es una letra.<br><br>Alguien me podría recomendar alguna otra función para leer esos ficheros?<br>Muchas gracias<br><br><span class="Apple-tab-span" style="white-space:pre">        </span>[[alternative HTML version deleted]]<br><br>_______________________________________________<br>R-help-es mailing list<br><a href="mailto:R-help-es@r-project.org">R-help-es@r-project.org</a><br>https://stat.ethz.ch/mailman/listinfo/r-help-es<br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; 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="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; 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; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; 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; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; 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; "><br class="Apple-interchange-newline"><font class="Apple-style-span" face="'Trebuchet MS'" size="3"><span class="Apple-style-span" style="font-size: 13px; "><b>Esteban Moro Egido<br></b>Dept. Mathematics | <font class="Apple-style-span" color="#000E77">Universidad Carlos III de Madrid </font></span></font></span></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; 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 class="Apple-style-span" face="'Trebuchet MS'" size="3"><span class="Apple-style-span" style="font-size: 13px; "></span></font><font class="Apple-style-span" face="'Trebuchet MS'" size="3"><span class="Apple-style-span" style="font-size: 13px; ">Tel.: (+34) 916248727<span class="Apple-converted-space"> </span><i>· </i><a href="http://markov.uc3m.es/">markov.uc3m.es</a></span></font><font class="Apple-style-span" face="'Trebuchet MS'" size="3"><span class="Apple-style-span" style="font-size: 13px; "><br></span></font></span></div></span></span><span></span><br class="Apple-interchange-newline"><span><img height="49" width="152" id="d0a3120c-7b99-4b16-bf9f-9d96f58217d6" apple-width="yes" apple-height="yes" src="cid:6980B015-B6A0-4627-B6D0-6D35F1D65269"></span>
</span></div>

<br></div></div></body></html>