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

From: Thaden, John J <ThadenJohnJ_at_uams.edu>
Date: Fri 28 Jul 2006 - 19:53:40 EST


## While in R v. 2.3.1 (the mid-July patch for Windows)
## on a Windows XP machine, this call to order() works fine...

order(1:10,decreasing = TRUE)
## [1] 10 9 8 7 6 5 4 3 2 1

## ...however, the argument name 'decreasing'
## must be typed in toto (note the missing 'g'
## in the following):

> order(1:10,decreasin = TRUE)
## Error in order(na.last, decreasing, ...) :
## argument lengths differ

## Isn't is standard practice to have R base functions
## accept truncated argument names as long as they are
## unambiguous?
 

Thanks,

John Thaden, Ph.D.

Confidentiality Notice: This e-mail message, including any a...{{dropped}}



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:08:51 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:24 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.