diff --git a/src/spatDataframe.cpp b/src/spatDataframe.cpp index 61c9ff367..c3ccf3271 100644 --- a/src/spatDataframe.cpp +++ b/src/spatDataframe.cpp @@ -586,7 +586,7 @@ bool SpatDataFrame::cbind(SpatDataFrame &x) { } else if (x.itype[i] == 3) { std::vector d = x.getB(i); if (!add_column(d, nms[i])) return false; - } else if (x.itype[i] == 3) { + } else if (x.itype[i] == 4) { SpatTime_v d = x.getT(i); if (!add_column(d, nms[i])) return false; } else {