General Tips for R

Posted on Nov 05, 2012 in Computer Science • Tagged with tips, R, generic, programming, argument

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

  1. Many R functions have lots of arguments which allows you get a full control of their behaviors, so before you ask whether there is any R function …


Continue reading

Distributions in R

Posted on Nov 05, 2012 in Computer Science • Tagged with distribution, R, programming, statistics

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 definition of geometric distribution in R is not the same as the common definition. A random variable of geometric distribution in R starts from zero, i …


Continue reading

Random Number Generating in R

Posted on Nov 05, 2012 in Computer Science • Tagged with R, programming, RNG

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

  1. Functions for sampling random numbers from distributions share a same "basic" random number generator (RNG). If one set a seed for the "basic" RNG in use, it …


Continue reading

Some Links for R

Posted on Oct 20, 2013 in Programming • Tagged with links, programming, 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. **


Continue reading

R System and Configurations

Posted on Nov 21, 2012 in Computer Science • Tagged with R, configuration, programming, system

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

  1. To allow opening R from a directory in R in Windows system, we can modify the registry. More specifically, we can add a command name (to be …


Continue reading

Combination and Permutation Related Functions in R

Posted on Nov 20, 2010 in Computer Science • Tagged with R, statisitcs, combination, permutation, programming

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

  1. expand.grid creates a data frame from all possible combinations of supplied vectors or factors. For example,

    > expand.grid(letters[1:2], 1:3, c("+", "-"))
       Var1 Var2 …

Continue reading