diff --git a/src/etTran.cpp b/src/etTran.cpp index 128cea82..0d643cb2 100644 --- a/src/etTran.cpp +++ b/src/etTran.cpp @@ -2131,7 +2131,7 @@ List etTransParse(List inData, List mv, bool addCmt=false, } else if (TYPEOF(cur) == LGLSXP) { curType[0] = IntegerVector::create(5); curType[1] = R_NilValue; - inDataFK[j] = cur; + inDataFK[j] = as(cur); inDataFKL[j] = curType; } else { stop(_("the columns that are kept must be either a logical, string, a factor, an integer number, or a real number"));