Skip to content

Commit

Permalink
Update read.gwt2nb.R
Browse files Browse the repository at this point in the history
  • Loading branch information
rsbivand authored Nov 24, 2024
1 parent 6499e9b commit cc3795c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/read.gwt2nb.R
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ write.swmdbf <- function(listw, file, ind, region.id = attr(listw, "region.id"))
to <- as.integer(to)
if (anyNA(to)) stop("to character indices could not be coerced to integer")
} else if (smt == "double") {
oto <- as.integer(round(to)
oto <- as.integer(round(to))
to <- as.integer(to)
if (any(to != oto)) stop("to double indices could not be coerced to integer")
} else stop("to indices invalid: ", smt)
Expand Down

0 comments on commit cc3795c

Please sign in to comment.