On Thu, Jul 8, 2010 at 8:47 AM, Sebastian Kruk <residuo.so...@gmail.com> wrote: >>> I tried: >>> >>> L <- readLines(con <- file("log2.log", encoding="UCS-2LE") >>> z <- read.zoo(textConnection(L), index = 1:2,FUN = function(x) >>> paste(x[,1], x[,2])) >>> >>> Error: >>> Error en x[, 1] : número incorreto de dimensiones >>> > >>Please provide a reproducible example like this: > >>library(zoo) >>L <- "4/4/200 10:10:10 3000 >>5/5/2000 12:12:12 4000" >>read.zoo(textConnection(L), index = 1:2, FUN = function(x) >paste(x[,1], >>x[,2])) > >>which gives me > >4/4/200 10:10:10 5/5/2000 12:12:12 > > 3000 4000 > > 1st line > #Prueba > Second line > "04/04/200 10:10:10 3000 Juan" > 2nd > "05/05/2000 12:12:12 4000 -" > ... > 10th line: > 05/04/2010 10:10:10 3000 Juan > ... > nth line > "01/01/2009 21:10:10 50 Varela" > ... > last line > "11/11/2008 23:20:32 5091 Laura" > > It's a window's unicode text file. >
We need to be able to reproduce what you have done to offer more than guesses. Read the last line at the bottom of every message to r-help. ______________________________________________ R-help@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.