Comparison of Values Involving NA in R

Posted on May 10, 2016 in Programming • Tagged with programming, R, comparison, NA, missing, CRAN

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

The best way to compare values containing NA in R is to define customized comparison functions. Here is an example.

equals = function(x1, x2, na_as_na = FALSE, reverse …

Continue reading

Insert Rows Missing as Missing Records in SAS

Posted on Oct 13, 2014 in Computer Science • Tagged with programming, SAS, missing

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

I recent come across a problem. I have a table A in SAS with columns x, y and z. The table almost exhaust the Cartesian product of …


Continue reading