Re: [R] order() 'decreasing =' argument must be typed in full

From: Berwin A Turlach <berwin_at_maths.uwa.edu.au>
Date: Fri 28 Jul 2006 - 20:12:55 EST

G'day John,

>>>>> "JT" == Thaden, John J <ThadenJohnJ@uams.edu> writes:

    JT> Isn't is standard practice to have R base functions accept     JT> truncated argument names as long as they are unambiguous? No. :)

The help page of order states:

Usage:

     order(..., na.last = TRUE, decreasing = FALSE)

Standard practice in R is that arguments behind ... are only matched by "exact matching", i.e., you have to specify the tag of that argument in full. Details on how arguments are matched are in the section "Argument matching" of "The R Language Definition" (and all though this is a draft, that part seems to be authoritative :) ).

Cheers,

        Berwin


R-help@stat.math.ethz.ch 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. Received on Fri Jul 28 20:26:04 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 28 Jul 2006 - 22:17:25 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.