Displaying 2 results from an estimated 2 matches for "escapeb".
Did you mean:
escape
2008 Apr 07
2
"\0" gives no warning "unknown escape sequence" (PR#11107)
...C code.
There is no warning about an unknown escape sequence.
(cf. R FAQ 7.37)
# example:
s <- "abc\0def"
s
# --> [1] "abc"
nchar(s)
# --> [1] 3
The "\0" seems to be so fundamental, that it cannot be handled by
any R function, am I right?
E.g., the function escapeBS (package:Hmisc) does not correctly
handle "\0" sequences, that is in contrast to what is stated in its
article ?escapeBS :
"'escapeBS' will escape any backslash '\backslash' in a string.
# example:
library(Hmisc)
escapeBS("abc\0def")
# -->[1] "abc...
2008 Apr 09
0
"\0" gives no warning "unknown escape sequence" (PR#11117)
...nce.
> (cf. R FAQ 7.37)
>
> # example:
> s <- "abc\0def"
> s
> # --> [1] "abc"
> nchar(s)
> # --> [1] 3
>
> The "\0" seems to be so fundamental, that it cannot be handled by
> any R function, am I right?
> E.g., the function escapeBS (package:Hmisc) does not correctly
> handle "\0" sequences, that is in contrast to what is stated in its
> article ?escapeBS :
> "'escapeBS' will escape any backslash '\backslash' in a string.
>
> # example:
> library(Hmisc)
> escapeBS("abc\...