When I remove a formula from a column, the calculated values stay.
When I remove a Value Labels Property from a column, the values switch back to the original values.
Is there an alternative remove (~ "apply") function for value Labels, which converts the data type of the column to character and keeps the Value Labels?
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << New Column( "sex2",
Formula(Recode(:sex,{Map Value( _rcOrig, {"F", "female", "M", "male"} )}));
);
dt:sex 2 << Delete Formula;
dt:sex << Value Labels( {"F" = "female", "M" = "male"} ) << Use Value Labels( 1 );
dt:sex << delete property( Value Labels );