Skip to content

Commit

Permalink
fixes #969
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Jan 10, 2023
1 parent ad382cf commit 39b6b0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/spatDataframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,10 @@ bool SpatDataFrame::remove_column(int i) {
sv.erase(sv.begin()+place);
} else if (dtype == 3) {
bv.erase(bv.begin()+place);
} else {
} else if (dtype == 4) {
tv.erase(tv.begin()+place);
} else {
fv.erase(fv.begin()+place);
}
return true;
}
Expand Down

0 comments on commit 39b6b0a

Please sign in to comment.