Format Numbers in R

Posted on Jun 11, 2016 in Programming • Tagged with programming, R, CRAN, formatting, numbers

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

When working with dates …


Continue reading

Find Elements That Appear Multiple Times in R

Posted on Jun 11, 2016 in Programming • Tagged with programming, CRAN, R, frequency, table, multiple times, unique

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

freq = tapply(x, x …

Continue reading

Write R Code that Runs Faster

Posted on Jun 26, 2012 in Programming • Tagged with DLL, programming, HPC, high performance computing, parallel, R, memory, GC, speedup, fast, CRAN

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

R is a popular statistical software which is famous for enormous amout of packages. The syntax of R is very flexible with make it convenient at the …


Continue reading

R for Internet/Web Applications

Posted on Nov 14, 2012 in Programming • Tagged with email, R, Web, programming, network, internet, CRAN

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

Sending/Receiving Emails

  1. There are many ways to send email in R. First, you can use sendmail{sendmailR}. The following code is a simple test email.

    sendmail …

Continue reading

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