[R] Multibyte characters in (row) names
Richard R. Liu
richard.liu at pueo-owl.ch
Mon Aug 2 18:56:11 CEST 2010
I have an array with names which contain multibyte characters. When I try to
write the array to a file using write.table and row.names = T I receive an error
message when the first such name is encountered, saying that I have not
specified the option to generate NA instead. I really would be satisfied if the
row name in the file were exactly what is displayed when I print the array on
the console, e.g., "en.\xc2". The only way I have found to avoid this is create
a new array containing in one column a deparse of the original row name and in
the other the value. This "solution" is ugly; "en.\xc2" becomes "\"en.\\xc2\"".
Is there a more straight forward way of dealing with multibyte characters?
Thanks
Richard
Richard R. Liu
richard.liu at pueo-owl.ch
More information about the R-help
mailing list