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
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
:
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
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
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
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
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
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
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
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
( ) 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
11 matches
Mail list logo