Keep Matrix Structure when Extract a Row/Column from a Matrix

Posted on Aug 14, 2012 in Programming • Tagged with programming, data structure, algebra, matrix, R, vector, CRAN

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

I talked in the post Abuse of Vector in R that it is often the case that we want keep the matrix sturcture when extracting a row …


Continue reading

Easy Made Mistakes when Writing R code

Posted on Jun 14, 2012 in Programming • Tagged with vector, operator, mistake, 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.

Being flexible is a two-side sword to R. While it make it convenient and productive to use R, it is also very easy to make mistakes when …


Continue reading

Skills for R

Posted on Nov 14, 2012 in Programming • Tagged with R, skills, 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. Unlike C/C++, Java and SAS, you do not have semicolon to indicate the end of a command, but you can do this if you like. It …


Continue reading

How to Submit R Packages to CRAN

Posted on Jun 03, 2012 in Programming • Tagged with R, ftp, sftp, programming, submit, package, CRAN

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

Submit using web form or using ftp following the steps below.

  1. Upload the .tar.gz file using anonymous as log-in name and your e-mail address as password …


Continue reading

RStudio Does Not Start

Posted on May 26, 2012 in Software • Tagged with IDE, R, statistics, software, configuration, RStudio, CRAN

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

Rstudio is the best cross-platform IDE for R so far. It is a lot like the IDE of MATLAB. Once I came across the problem that Rstudio …


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.