[R] blank space escape sequence in R?

2011-04-25 Thread Mark Heckmann
Is there a blank space escape sequence in R, i.e. something like \sp etc. to produce a blank space? TIA Mark ––– Mark Heckmann Blog: www.markheckmann.de R-Blog: http://ryouready.wordpress.com __ R-help@r-project.org

Re: [R] blank space escape sequence in R?

2011-04-25 Thread Duncan Murdoch
On 25/04/2011 9:01 AM, Mark Heckmann wrote: Is there a blank space escape sequence in R, i.e. something like \sp etc. to produce a blank space? You need to give some context. A blank in a character vector will be printed as a blank, so you are probably talking about something else

Re: [R] blank space escape sequence in R?

2011-04-25 Thread Mark Heckmann
: Is there a blank space escape sequence in R, i.e. something like \sp etc. to produce a blank space? You need to give some context. A blank in a character vector will be printed as a blank, so you are probably talking about something else, but what? Duncan Murdoch

Re: [R] blank space escape sequence in R?

2011-04-25 Thread Duncan Murdoch
in. You'll need to attach a class to your vector of strings, and write a print method for it that does the substitution before printing. Duncan Murdoch TIA Am 25.04.2011 um 15:05 schrieb Duncan Murdoch: On 25/04/2011 9:01 AM, Mark Heckmann wrote: Is there a blank space escape sequence in R

Re: [R] blank space escape sequence in R?

2011-04-25 Thread Jan van der Laan
25.04.2011 um 15:05 schrieb Duncan Murdoch: On 25/04/2011 9:01 AM, Mark Heckmann wrote: Is there a blank space escape sequence in R, i.e. something like \sp etc. to produce a blank space? You need to give some context. A blank in a character vector will be printed as a blank, so you

Re: [R] blank space escape sequence in R?

2011-04-25 Thread Jan van der Laan
25.04.2011 um 15:05 schrieb Duncan Murdoch: On 25/04/2011 9:01 AM, Mark Heckmann wrote: Is there a blank space escape sequence in R, i.e. something like \sp etc. to produce a blank space? You need to give some context. A blank in a character vector will be printed as a blank, so you

Re: [R] blank space escape sequence in R?

2011-04-25 Thread Mike Miller
On Mon, 25 Apr 2011, Mark Heckmann wrote: I use a function that inserts line breaks (\n as escape sequence) according to some criterion when there are blanks in the string. e.g. some text \nand some more text. What I want now is another form of a blank, so my function will not insert a ?\n

Re: [R] blank space escape sequence in R?

2011-04-25 Thread Matt Shotwell
the binary (hex) representation for the space character on your platform, and substitute this sequence instead. On Mon, 2011-04-25 at 15:01 +0200, Mark Heckmann wrote: Is there a blank space escape sequence in R, i.e. something like \sp etc. to produce a blank space? TIA Mark

Re: [R] blank space escape sequence in R?

2011-04-25 Thread Matt Shotwell
this sequence instead. On Mon, 2011-04-25 at 15:01 +0200, Mark Heckmann wrote: Is there a blank space escape sequence in R, i.e. something like \sp etc. to produce a blank space? TIA Mark ––– Mark Heckmann Blog: www.markheckmann.de R-Blog

Re: [R] blank space escape sequence in R?

2011-04-25 Thread Petr Savicky
On Mon, Apr 25, 2011 at 04:37:15PM +0200, Jan van der Laan wrote: There exists a non-breaking space: http://en.wikipedia.org/wiki/Non-breaking_space Perhaps you could use this. In R on Linux under gnome-terminal I can enter it with CTRL+SHIFT+U00A0. This seems to work: it prints as a

Re: [R] blank space escape sequence in R?

2011-04-25 Thread Mark Heckmann
( ) to see the binary (hex) representation for the space character on your platform, and substitute this sequence instead. On Mon, 2011-04-25 at 15:01 +0200, Mark Heckmann wrote: Is there a blank space escape sequence in R, i.e. something like \sp etc. to produce a blank space? TIA Mark