On Sat, 10 Jun 2006, Prof Brian Ripley wrote:
?regex does describe this:
A range of characters may be specified by giving the first and last
characters, separated by a hyphen. (Character ranges are
interpreted in the collation order of the current locale.)
You did not tell us
?regex does describe this:
A range of characters may be specified by giving the first and last
characters, separated by a hyphen. (Character ranges are
interpreted in the collation order of the current locale.)
You did not tell us your locale, but based on questions from you
I get the same result in a US collate ordering:
strsplit(Sys.getlocale(), ;)
[[1]]
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
grep([W-Z], letters, value =
version
_
platform x86_64-unknown-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major2
minor2.1
year 2005
I get the same thing on Version 2.3.1 Patched (2006-06-04 r38279)
but on R version 2.2.1, 2005-12-20 it gives character(0), as
expected, so there is some change between versions of R. I am
on Windows XP.
On 6/9/06, Patrick Connolly [EMAIL PROTECTED] wrote:
version
_
platform