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

Load User-written Script into Ruby

Posted on Aug 25, 2012 in Computer Science • Tagged with search path, require, programming, load, package, Ruby

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

By default the current working directoly is not in the search path of Ruby. To load a user-written script named "script.rb" into Ruby, you can use …


Continue reading

Make Plots in SAS

Posted on Jul 11, 2012 in Computer Science • Tagged with image, SAS, graphics, 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. There are functions to add points, lines and legends to an existing plot in R. In SAS, there is no way to do this. What you can …


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