Hi all, I'm guessing what's the rationale behind this:
> subsettingFun <- function(vec, ix) vec[ix] > subsettingFun(letters, c(1,2,5)) [1] "a" "b" "e" > subsettingFun(letters) [1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" "p" "q" "r" "s" [20] "t" "u" "v" "w" "x" "y" "z" If the argument "ix" is missing, I'm expecting an error not to return the variable "vec" as it is. I think this is VERY dangerous and does not help the development of reliable code and the debugging. Cheers, Stefano *Center for Genomic Science of IIT@SEMM* Stefano de Pretis, PhD *Postdoctoral fellow * [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.