On Jan 1, 2010, at 4:47 PM, Tal Galili wrote:
Hello dear R help group,
I am trying to read a .txt file, with Hebrew column names, while
keeping the
column names looking well in R - but without success.
I uploaded an example file to:
http://www.talgalili.com/files/aa.txt
And am trying the command:
read.table("http://www.talgalili.com/files/aa.txt", header = T, sep
= "\t")
This returns me with:
X.....ª X...ª...... X...œ....
1 12 97 6
2 123 354 44
3 6 1 3
Unable to reproduce:
> read.table("http://www.talgalili.com/files/aa.txt", header = T, sep =
+ "\t")
אחת שתיים שלוש
1 12 97 6
2 123 354 44
3 6 1 3
> sessionInfo()
R version 2.10.1 RC (2009-12-09 r50695)
x86_64-apple-darwin9.8.0
locale:
[1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] cluster_1.12.1 grid_2.10.1 Hmisc_3.7-0 lattice_0.17-26
tools_2.10.1
>
I suspect you will need to be more specific about your setup
details... OS ... encodings ... the sort of think that comes from
sessionInfo.
Instead of:
אחת שתיים שלוש
12 97 6
123 354 44
6 1 3
Any suggestion or clarification will be appreciated.
Best,
Tal
David Winsemius, MD
Heritage Laboratories
West Hartford, CT
______________________________________________
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.