Install the rJava Package in R

Posted on Dec 10, 2013 in Software • Tagged with R, rJava, Java, Linux

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

The most convenient way is to install the corresponding Linux package if exists.

sudo apt-get install r-cran-rjava

However, this Linux package is often outdated …


Continue reading

Call Java in R Using Package rJava

Posted on Jun 23, 2012 in Computer Science • Tagged with programming, Java, array, rJava, R, vector, package

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

The package "rJava" offers a convenient way to call Java code from R. The following are some tips for using the "rJava" package.

  1. You must first start …


Continue reading

How MATLAB Is Different from Other Programming Languages

Posted on Dec 13, 2012 in Computer Science • Tagged with C++, programming, Java, SAS, R, 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. MATLAB support command style (like Linux terminal commands). This means that you do not have to use parentheses when you call some functions, instead, you can use …


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

Compare R with Other Languages on Data Manipulation

Posted on May 13, 2012 in Computer Science • Tagged with Python, C++, programming, statistics, Java, string, data frame, R, OOP, MATLAB, CRAN

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

Here I compare R with other languages such as C/C++, Java, MATLAB, Python and so on data manipulation. I list a few advantages and disadvantages of …


Continue reading