🎉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

[Solved] Convert regular attribute to label?

User: "indu625"
New Altair Community Member
Updated by Jocelyn
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

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "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