🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

"R extension - how to get started"

User: "marie"
New Altair Community Member
Updated by Jocelyn

Hey there,

I am really new to the use of RapidMiner and R, and well I did not find anything in the internet on how to get started with the r Extension in RapidMiner that really breaks it down to the basics. So I just tried some very simple things out like the max of a column. 

the script is the following:

rm_main = function(data)
{
max($Temperature)
return(data)
}

and the error message is:

The script yould not be parsed. Please check your R script.

[1] "script.R:5:5: unexpected '$' (....)"

 

Do you know how to solve it?

Or do you have something were one can learn how to get started with the use of the R extension in RapidMiner with just basic knowledge?

Thanks in advance

Marie

 

Ah and here is the xml:

<?xml version="1.0" encoding="UTF-8"?><process version="7.2.001">
<context>
<input/>
<output/>
<macros/>
</context>
<operator activated="true" class="process" compatibility="7.2.001" expanded="true" name="Process">
<process expanded="true">
<operator activated="true" class="retrieve" compatibility="7.2.001" expanded="true" height="68" name="Retrieve Golf" width="90" x="45" y="85">
<parameter key="repository_entry" value="//Samples/data/Golf"/>
</operator>
<operator activated="true" class="r_scripting:execute_r" compatibility="7.2.000" expanded="true" height="82" name="Execute R" width="90" x="246" y="85">
<parameter key="script" value="rm_main = function(data)&#10;{&#10; max($Temperature)&#10;}&#10;"/>
</operator>
<connect from_op="Retrieve Golf" from_port="output" to_op="Execute R" to_port="input 1"/>
<connect from_op="Execute R" from_port="output 1" to_port="result 1"/>
<portSpacing port="source_input 1" spacing="0"/>
<portSpacing port="sink_result 1" spacing="0"/>
<portSpacing port="sink_result 2" spacing="0"/>
</process>
</operator>
</process>

Find more posts tagged with