Zero-length Vector Issue in R

Posted on Apr 10, 2017 in Programming • Tagged with programming, CRAN, R, issue, trick, trap, vector, zero-length, 0-length

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

The corner case of 0-length vectors is not well considered in R. It causes issues in several situations. First, 1:n is probably not what you want …


Continue reading

Traps in R

Posted on Nov 09, 2012 in Programming • Tagged with R, global variable, programming, traps, 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. Zero-Length Vector Issue in R

  2. A really tricky problem about is global and local variables. You can use any global variable in a user-defined function, which is …


Continue reading

R Markdown Tips

Posted on Jun 09, 2016 in Programming • Tagged with programming, CRAN, R Markdown, Markdown, R

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

RMarkdown Reference

  1. The rmarkdown …


Continue reading

Missing Values in R

Posted on Jun 09, 2016 in Programming • Tagged with programming, CRAN, R, missing values, NA, NaN

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

  1. NA can be of …

Continue reading

Using SQL in R

Posted on Jan 08, 2016 in Programming • Tagged with programming, CRAN, SQL, database, RJDBC, teradataR, RODBC

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

  1. It is suggested that …

Continue reading

Cygwin Come to Rescue Linux Fans on Windows

Posted on Aug 19, 2013 in Software • Tagged with Linux, Windows, virtualization, software, Cygwin

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

  1. It is suggested that you use 32 bit Cygwin as it has a better package support.

  2. Some tools (e.g., terminator) are not included in the regular …


Continue reading