Popular Functions in IML

Posted on Jan 02, 2015 in Computer Science • Tagged with programming, SAS, IML, function, module

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

dif: lagged difference, keep …


Continue reading

Passing Arrays Between R and Other Programming Languages

Posted on May 02, 2012 in Computer Science • Tagged with array, R, C/C++, programming, Java

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

A matrix or an array in R is essentially a vector with dimension attribute. For this reason, no matter you pass a vector, matrix or an array …


Continue reading

Tricky Problems in MATLAB

Posted on Dec 20, 2012 in Computer Science • Tagged with trick, trap, programming, MATLAB

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

  1. Sometimes you might find that you can use some built-in function in MATLAB at first, but later you cannot use it any. If so, you should probably …


Continue reading

String in MATLAB

Posted on Dec 20, 2012 in Computer Science • Tagged with string, programming, MATLAB

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 display special characters (e.g. \n, \t and so on), you have to use sprintf to format it first. fprintf does the job of formatting and …


Continue reading

Tips for the IML Procedure in SAS

Posted on Jul 19, 2012 in Computer Science • Tagged with SAS, matrix, programming, IML

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

  1. End an IML procedure with quit;. You should never use run; to end an IML procedure because it is used for calling user-defined functions in IML procedures …


Continue reading

Time and Date in R

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

  1. The function as.Date and strptime convert string to dates. For these functions to work right, you must use the right format.