[Rd] sort - Windows and Linux
Gabor Grothendieck
ggrothendieck at gmail.com
Tue May 27 18:51:14 CEST 2008
This depends on the collating sequence of your locale. See ?Comparison
On Tue, May 27, 2008 at 12:21 PM, Yohan Chalabi <chalabi at phys.ethz.ch> wrote:
> Dear all,
>
> While debugging a function I realized that
>
> sort(c(" 1", " 2", "10"))
>
> do not give the same result on Windows and Linux.
>
> This is actually not surprising because white spaces are not handle in
> the same manner on these two platforms. But I was wondering if this
> behavior is also desired in R.
>
> regards,
> Yohan Chalabi
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
More information about the R-devel
mailing list