[R] Quote as element of a vector/list

Peter Alspach Peter.Alspach at plantandfood.co.nz
Tue Apr 30 22:05:40 CEST 2013

Tena koe Jie


x <- ' 12"ab"34 '
plot(1:10, xlab=x)

HTH ...

Peter Alspach

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Jie
Sent: Wednesday, 1 May 2013 6:46 a.m.
To: r-help at r-project.org
Subject: [R] Quote as element of a vector/list

Dear All,

I would like to store quote as part of an vector.
For instance, I would like to get an character object as x = " 12"ab"34 "
y = c("1", "2", """, "a", "b", """, "3", "4")

Is that possible? Thank you.

Best wishes,

	[[alternative HTML version deleted]]

R-help at r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

The contents of this e-mail are confidential and may be ...{{dropped:14}}

More information about the R-help mailing list