Writing R Extensions

Posted on Nov 23, 2012 in Programming • Tagged with R, Rcpp, 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.

The following are some tips for using the old fashioned way (using .C and .Call) to write R extensions. The state-of-art way to extend R via C …


Continue reading

R Coding Style

Posted on Jun 23, 2016 in Programming • Tagged with programming, R, CRAN, formatting

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. You can use the …

Continue reading

Existing Bugs in R

Posted on Nov 15, 2012 in Programming • Tagged with R, sums of squares, programming, bug, 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. R does not give …

Continue reading

Advantages and Disadvantages of R

Posted on Nov 13, 2012 in Programming • Tagged with pros, programming, cons, advantage, disadvantage, 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. **

Advantages

  1. R is opensource …


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