On Jun 8, 2012, at 1:11 PM, Ben quant wrote:

Hello,

How do I change this:
cnt_str
[1] "\002" "\001" "\102"

...to this:
cnt_str
[1] "2" "1" "102"

Having trouble because of this:
nchar(cnt_str[1])
[1] 1

"\001" is ASCII cntrl-A, a single character.

?Quotes # not the first, second or third place I looked but I knew I had seen it before.



Thanks!

Ben

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

David Winsemius, MD
West Hartford, CT

______________________________________________
R-help@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.

Reply via email to