Hola Jorge,

A mi tampoco me funciona con "scan()", pero sí con "readLines()", aunque el
resultado es muy extraño...
Aunque puede ser también debido al tipo de conexión que estoy usando en
este momento...

> txt <- 'http://dl.dropboxusercontent.com/u/9601860/txt.txt'> r <- scan(txt)Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,  :
  scan() expected 'a real', got 'ÿþM'> rr <- readLines(txt, n=-1,
encoding="UTF-8")There were 50 or more warnings (use warnings() to see
the first 50)> head(rr,30) [1] "\xff\xfeM" ""          ""          ""
        ""          ""
 [7] ""          ""          ""          ""          ""          ""
[13] ""          ""          ""          ""          ""          ""
[19] ""          ""          ""          ""          ""          ""
[25] ""          ""          ""          ""          ""          ""




Saludos,
Carlos Ortega
www.qualityexcellence.es




2014-03-12 4:26 GMT+01:00 Jorge I Velez <jorgeivanvelez@gmail.com>:

> Hola a todos,
>
> Me gustaria leer el texto que se encuentra en
> http://dl.dropboxusercontent.com/u/9601860/txt.txt
>
> He intentado
>
> txt <- 'http://dl.dropboxusercontent.com/u/9601860/txt.txt'
> r <- scan(txt)
> #Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,
>  :
> # invalid multibyte string at '<ff><fe>M'
>
> r <- read.table(txt, header = FALSE)
> #Error in type.convert(data[[i]], as.is = as.is[i], dec = dec, na.strings
> =
> #   character(0L)) :  invalid multibyte string at '<ff><fe>M'
>
> Esta es mi sessionInfo():
>
> > sessionInfo()
> R version 3.0.2 Patched (2013-12-11 r64449)
> Platform: x86_64-apple-darwin10.8.0 (64-bit)
>
> locale:
> [1] en_AU.UTF-8/en_AU.UTF-8/en_AU.UTF-8/C/en_AU.UTF-8/en_AU.UTF-8
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
> other attached packages:
> [1] foreign_0.8-59
>
> loaded via a namespace (and not attached):
> [1] tools_3.0.2
>
>
> Alguna sugerencia?
>
> Muchas gracias,
> Jorge.-
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>



-- 
Saludos,
Carlos Ortega
www.qualityexcellence.es

	[[alternative HTML version deleted]]

