R Snippet (Remote)

This Node Is Deprecated — This node is kept for backwards-compatibility, but the usage in new workflows is no longer recommended. The documentation below might contain more information.

Allows execution of R commands on an R server. The entire data (compatible to int, double, and String types) is transfered to the R server which then executes a series of R commands entered in the dialog. Each column can be accessed by the name provided in the input data table. The output has to be assigned to a variable named R. Missing values are supported, that is, missing values in numeric columns are transfered as NaN (Not a Number) to the R server while missing values in all other types of columns are sent as NA.

R installation:
In order to get the R nodes running, you have to install the R-project first, see www.r-project.org. Also the R server which responds to R commands has to be installed and running, see http://www.rforge.net/Rserve/.
Also make sure that you have the latest available or compatible R-project version at hand. For Windows you may download an R server for your R-project version. All other operating systems require the most recent clients (R-project installation). We offer downloads of current versions of R and Rserve that are compatible with KNIME on our website. Please note that in the current version the R server needs to be restarted from time to time. If an R node hangs, interrupt the R server and restart it. Warnings and errors are printed in the R server window.


More details about R:
http://www.r-project.org/
Short-refcard.pdf

Options

R Command

R Snippet
Enter R commands here, for instance for computing the Covariance of two columns:
R<-cov(Col0,Col1)
Column List
The list contains the column that are available in the input table. Double click any of the column names to insert the respective field in the expression editor. It will replace your current selection or simply insert at the current caret position.
Flow Variable List
The list contains the flow variables that are currently available at the node input. Double clicking any of the entries will insert the respective identifier at the current cursor position (replacing the selection, if any).

Login

Host
The IP of the computer where the R server is running, for example localhost with IP 127.0.0.1
Port
The port id, default is 6311.
User
The login name can be empty.
Password
The password can be empty.

Input Ports

Icon
Data Input

Output Ports

Icon
R Result Data

Popular Predecessors

  • No recommendations found

Popular Successors

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.