Skip to content

Commit

Permalink
fixes #1530
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Jun 16, 2024
1 parent 69603b7 commit 620d1ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vector_methods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ SpatVector SpatVector::elongate(double length, bool flat) {
return out;
}


#include "Rcpp.h"

SpatVectorCollection SpatVector::split(std::string field) {

Expand All @@ -271,8 +271,8 @@ SpatVectorCollection SpatVector::split(std::string field) {
v.srs = srs;
v.df = df.subset_rows(r);
out.push_back(v);
out.names[out.names.size()-1] = v.df.getSvalue(i, 0);
}
out.names = uv.as_string(0);
return out;
}

Expand Down

0 comments on commit 620d1ca

Please sign in to comment.