[Solved] Convert regular attribute to label?

indu625indu625 Member Posts: 1 Contributor I
edited November 2018 in Help

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,


  • Options
    MariusHelfMariusHelf RapidMiner Certified Expert, Member Posts: 1,869 Unicorn
    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,
Sign In or Register to comment.