How MATLAB Is Different from Other Programming Languages

Posted on Dec 13, 2012 in Computer Science • Tagged with C++, programming, Java, SAS, R, 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. MATLAB support command style (like Linux terminal commands). This means that you do not have to use parentheses when you call some functions, instead, you can use …


Continue reading

Sweave

Posted on Nov 13, 2012 in Computer Science • Tagged with LaTeX, programming, Sweave

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

  1. Do not use sweave unless you are sure that you have run to the same code again and again on different data sets, and you want the …


Continue reading

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

Data Structure in R

Posted on Nov 09, 2010 in Programming • Tagged with programming, list, data structure, container, matrix, vector, R, CRAN

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

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

Vector, Matrix and Array …


Continue reading

Tips About Rcpp

Posted on Oct 09, 2013 in Programming • Tagged with tips, programming, Rcpp, C++, CRAN

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

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

  1. The trick of using …


Continue reading

Input and Output in R

Posted on Nov 09, 2012 in Programming • Tagged with R, IO, programming, CRAN

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

read.table, read.csv, read.delim, etc.

  1. It is suggested that you use read.csv/read.delim and avoid using read.table. This is because that the …


Continue reading