[R] Paste function and backslash

2006-12-08 Thread Szymon Wlazlowski
Dear useRs,

calls and results below:
 paste(\ \n)
[1]  \n
*but*
 paste(\ \N)
[1]  N
Question: Is that by design? If so, how can I obtain simple LaTeX-type:
[1] \N

 version
platform   i386-pc-linux-gnu
arch   i386
os linux-gnu
system i386, linux-gnu
status
major  2
minor  4.0
year   2006
month  10
day03
svn rev39566
language   R
version.string R version 2.4.0 (2006-10-03)
-- 
Szymon Wlazlowski

__
R-help@stat.math.ethz.ch 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.


Re: [R] Paste function and backslash

2006-12-08 Thread Roger Bivand
On Fri, 8 Dec 2006, Szymon Wlazlowski wrote:

 Dear useRs,
 
 calls and results below:
  paste(\ \n)
 [1]  \n
 *but*
  paste(\ \N)
 [1]  N
 Question: Is that by design? If so, how can I obtain simple LaTeX-type:
 [1] \N

FAQ 7.37:

http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-does-backslash-behave-strangely-inside-strings_003f


 
  version
 platform   i386-pc-linux-gnu
 arch   i386
 os linux-gnu
 system i386, linux-gnu
 status
 major  2
 minor  4.0
 year   2006
 month  10
 day03
 svn rev39566
 language   R
 version.string R version 2.4.0 (2006-10-03)
 

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: [EMAIL PROTECTED]

__
R-help@stat.math.ethz.ch 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.