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

Tricky Problems in MATLAB

Posted on Dec 20, 2012 in Computer Science • Tagged with trick, trap, programming, MATLAB

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

  1. Sometimes you might find that you can use some built-in function in MATLAB at first, but later you cannot use it any. If so, you should probably …


Continue reading