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

Filesystem in R

Posted on Nov 06, 2010 in Programming • Tagged with R, filesystem, programming, CRAN, file system

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. dirname returns the parent …


Continue reading

Install the R Package "arrayQualityMetrics"

Posted on Apr 11, 2012 in Programming • Tagged with research, programming, biostatistics, package, arrayQualityMetrics, 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.

I had to use the R package "arrayQualityMetrics" to check the quality of some gene chips. Installing this package in Linux takes a few steps. The following …


Continue reading