[R] Quote as element of a vector/list

arun smartpink111 at yahoo.com
Tue Apr 30 21:02:03 CEST 2013


 y = c("1", "2", '"', "a", "b", '"', "3", "4")
 y
#[1] "1"  "2"  "\"" "a"  "b"  "\"" "3"  "4" 




A.K.



----- Original Message -----
From: Jie <jimmycloud at gmail.com>
To: "r-help at r-project.org" <r-help at r-project.org>
Cc: 
Sent: Tuesday, April 30, 2013 2:46 PM
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 "
or
y = c("1", "2", """, "a", "b", """, "3", "4")

Is that possible? Thank you.

Best wishes,
Jie

    [[alternative HTML version deleted]]

______________________________________________
R-help at r-project.org 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.




More information about the R-help mailing list