On 07/07/2010 9:16 AM, Sebastian Kruk wrote:
I have a text file log2.log encoded Ansi in Windows.
What Windows calls "Ansi" is called "latin1" in R. You said the encoding was "UCS-2LE", which Windows calls "Unicode". Part of your problem might be this mismatched encoding. Have you tried using encoding="latin1" when you read the file?
Duncan Murdoch
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@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.
______________________________________________ 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.