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