Alike Objects/Functions in R

Posted on Nov 05, 2010 in Computer Science • Tagged with programming, regex, data frame, matrix, R, warning

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

Matrix VS Data Frame:

  1. The data in a matrix must be of the same type while different columns in a data frame can have different types.

  2. A …


Continue reading

Functions and Calls in R

Posted on Nov 10, 2010 in Programming • Tagged with R, function, programming, call, CRAN

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

  1. "[" is a function in R. It takes elements from a container (vector, matrix, list, etc.) For example, suppose lv is a list of vectors. The following code …


Continue reading

R for Numerical Analysis

Posted on Nov 21, 2012 in Computer Science • Tagged with optimization, programming, numerical analyis, R

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

  1. Usually when we check whether two double values equal or not, we would check whether they're close enough or not. This is due to possible information loss …


Continue reading

Simple Data Manipulating Example in SAS

Posted on Jan 22, 2015 in Computer Science • Tagged with programming, SAS, IML, R, CRAN, example

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. **

Suppose there is a …


Continue reading

Environments in R

Posted on Nov 22, 2012 in Computer Science • Tagged with R, programming, environment

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 option pos=1 …


Continue reading

Tips on R

Posted on Oct 29, 2013 in Programming • Tagged with tips, programming, CRAN, R

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. commandArgs extract command line …


Continue reading