[Solved] Convert regular attribute to label?

indu625
indu625 New Altair Community Member
edited November 5 in Community Q&A
Hi,

I used the R extension and wrote an R script that removes the label attribute from a set, does some transforming, then concatenates the label with the rest of the data.


ie) x <- dataSet[,2]

y <-  {some processing of x}

resultSet <- cbind( dataSet[,1] , y)    ##here dataSet[,1] is the label


The problem is that when I do this, the attribute changes from label to just a normal attribute.  My question is, is the a way to convert a normal attribute to a label?

Thanks in advance,
I
Tagged:

Answers

  • MariusHelf
    MariusHelf New Altair Community Member
    Hi I,

    you can use the Set Role operator for that. Just select the attribute which should be the label and set its role to "label".
    For an introduction of RapidMiner's basic concepts please have a look at our documentation material and the video tutorials in the post linked in my signature.

    All the best,
    Marius