Zero-length Vector Issue in R

Posted on Apr 10, 2017 in Programming • Tagged with programming, CRAN, R, issue, trick, trap, vector, zero-length, 0-length

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

The corner case of 0-length vectors is not well considered in R. It causes issues in several situations. First, 1:n is probably not what you want …


Continue reading