Skip to content

Commit

Permalink
Closes #154
Browse files Browse the repository at this point in the history
  • Loading branch information
rafapereirabr committed Feb 27, 2021
1 parent 7fccd20 commit b85eebe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions r-package/R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ assert_points_input <- function(df, name) {
data.table::setDT(df)
data.table::setnames(df, "x", "lon")
data.table::setnames(df, "y", "lat")
data.table::setnames(df, names(df)[1], "id")

checkmate::assert_names(names(df), must.include = c("id"), .var.name = name)
}

checkmate::assert_names(names(df), must.include = c("id", "lat", "lon"), .var.name = name)
Expand Down

0 comments on commit b85eebe

Please sign in to comment.