[R] remove leading slash
David Winsemius
dwinsemius at comcast.net
Fri Jun 8 19:25:20 CEST 2012
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 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.
David Winsemius, MD
West Hartford, CT
More information about the R-help
mailing list