Tentei isto, mas limpa 00 que não devem ser limpados.
2012/10/31 Roberto de Pinho <robertodepinho@gmail.com>:
> tbm sem sucesso:Se estiver usando um sistema operacional que tenha o programa sed
>
> ata1 <- read.delim(url,header=TRUE,sep="\t", fill=TRUE, fileEncoding =
> "UTF-16", as.is=T)
> ata1 <- read.delim(url,header=TRUE,sep="\t", fill=TRUE, fileEncoding =
> "UTF-16")
> ata1 <- read.delim(url,header=TRUE,sep="\t", fill=TRUE, fileEncoding =
> "UTF-16LE", as.is=T)
> ata1 <- read.delim(url,header=TRUE,sep="\t", fill=TRUE, fileEncoding =
> "UTF-16LE")
instalado (qualquer distribuição do Linux), uma tentativa pode ser
"limpar" o arquivo, removendo os 0s:
sed -e 's/\x00//g' teste.csv > teste2.csv
sed -e 's/\xff\xfe//' teste2.csv > teste3.csv
_______________________________________________
R-br mailing list
R-br@listas.c3sl.ufpr.br
https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça código mínimo reproduzível.