public RFactorToStringVectorClosure(
     RFactor factor, RAbstractStringVector levels, boolean withNames) {
   super(factor.getVector());
   this.levels = levels;
   this.withNames = withNames;
   if (this.levels == null) {
     RError.warning(RError.NO_NODE, RError.Message.IS_NA_TO_NON_VECTOR, "NULL");
   }
 }
Example #2
0
 @Specialization
 protected RAbstractVector cast(RFactor factor) {
   return factor.getVector();
 }