Re: [R] Export Unicode characters from R

2011-07-15 Thread Sverre Stausland
Hi, I'm interested in the suggestion to use writeLines( ..., useBytes=TRUE), but how can I use this function on the way to exporting from R? Could you please provide a simple example? The following suggestion worked very well: > funny.g<- "\u1E21" > rawstuff<- charToRaw(funny.g) > writeBin(rawst

Re: [R] Export Unicode characters from R

2011-07-15 Thread Sverre Stausland
>>> >>> >  funny.g<- "\u1E21" >>> >  funny.g >> >> [1] "ḡ" >> >>> >  data.frame (funny.g) ->  funny.g >>> >  funny.g$funny.g >> >> [1] ḡ >> Levels: > > I think the problem is in the data.frame code, not in writing. Data.frames > try to display things in a readable way, and since you're on Windows w

Re: [R] Export Unicode characters from R

2011-07-15 Thread Duncan Murdoch
On 15/07/2011 1:42 PM, Sverre Stausland wrote: >>> >>> >funny.g<- "\u1E21" >>> >funny.g >> >> [1] "ḡ" >> >>> >data.frame (funny.g) ->funny.g >>> >funny.g$funny.g >> >> [1] ḡ >> Levels: > > I think the problem is in the data.frame code, not in writing. Data.frames > tr

Re: [R] Export Unicode characters from R

2011-07-15 Thread Duncan Murdoch
On 15/07/2011 1:42 PM, Sverre Stausland wrote: >>> >>> >funny.g<- "\u1E21" >>> >funny.g >> >> [1] "ḡ" >> >>> >data.frame (funny.g) ->funny.g >>> >funny.g$funny.g >> >> [1] ḡ >> Levels: > > I think the problem is in the data.frame code, not in writing. Data.frames > tr

Re: [R] Export Unicode characters from R

2011-07-15 Thread Duncan Murdoch
On 11-07-14 7:11 PM, Sverre Stausland wrote: > funny.g<- "\u1E21" > funny.g [1] "ḡ" > data.frame (funny.g) -> funny.g > funny.g$funny.g [1] ḡ Levels: I think the problem is in the data.frame code, not in writing. Data.frames try to display things in a readable way, and since you're on

[R] Export Unicode characters from R

2011-07-14 Thread Sverre Stausland
Dear helpers, I am not able to export Unicode characters from R. Below is an example where the Unicode character is correctly rendered as long as I am stay within R. When I export it, the character appears only with its basic code, and the same happens when I import it back into R . I'm using R 2.