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

Thaden, John J ThadenJohnJ at uams.edu
Fri Jul 28 11:53:40 CEST 2006


## 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}}



More information about the R-help mailing list