[R] can't open file

Sebastian Kruk residuo.solow at gmail.com
Wed Jul 7 15:41:39 CEST 2010


If I edit(out):

structure(logical(0), .Dim = c(707L, 0L), .Dimnames = list(NULL,
    NULL), index = structure(1:707, format = "m/d/y", origin = structure(c(1,
1, 1970), .Names = c("month", "day", "year")), class = c("dates",
"times")), class = "zoo")

I tried:

z <- read.zoo(textConnection(L), index = 1:2,FUN = function(x)
paste(x[,1], x[,2]))

I have de following error:

Error en x[, 1] : número incorreto de dimensiones

2010/7/7 Henrique Dallazuanna <wwwhsd en gmail.com>:
>
> You've tried this?
>
> out <- read.zoo("log2.log", encoding="UCS-2LE", FUN = as.chron)
>
> On Wed, Jul 7, 2010 at 10:16 AM, Sebastian Kruk <residuo.solow en gmail.com>
> wrote:
>>
>> I have a text file log2.log encoded Ansi in Windows.
>>
>> When I execute:
>>
>> out <- read.zoo(readLines(con <- file("log2.log",
>> encoding="UCS-2LE")),FUN = as.chron)
>>
>> have errors:
>>
>> Error en file(file, "rt") : no se puede abrir la conexión
>> Además: Mensajes de aviso perdidos
>> 1: In file(file, "rt") :
>>  sólo fue usado el primer elemento del argumento 'description'
>> 2: In file(file, "rt") :
>>  no fue posible abrir el archivo '#Software: Microsoft Internet
>> Information Services 5.0': No such file or directory
>>
>> Why?
>>
>> Thks,
>>
>> Sebastián.
>>
>> ______________________________________________
>> R-help en r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>
>
>
> --
> Henrique Dallazuanna
> Curitiba-Paraná-Brasil
> 25° 25' 40" S 49° 16' 22" O
>



More information about the R-help mailing list