You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/checkCoord.R
+25-11Lines changed: 25 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,7 @@
60
60
#' the validation of the locality information (see function `getLoc()` and the
61
61
#' default __plantR__ maps 'worldMap' and 'latamMap').
62
62
#'
63
+
#' @encoding UTF-8
63
64
#'
64
65
#' @export checkCoord
65
66
#'
@@ -99,7 +100,7 @@ checkCoord <- function(x,
99
100
##Preliminary edits
100
101
cols.x<- names(x) # original data column names
101
102
x$tmp.order<-1:nrow(x)
102
-
x[, str.name][x[, str.name] %in%"no_loc"] <-NA#porque nao é pais (rafl: concordo, mas não achei nehuma funcao onde esse 'no_loc' é gerado; melhor alterar direto na função que obtém o string, getLoc()?)
103
+
x[, str.name][x[, str.name] %in%"no_loc"] <-NA#porque nao eh pais (rafl: concordo, mas nao achei nehuma funcao onde esse 'no_loc' eh gerado; melhor alterar direto na funcao que obtem o string, getLoc()?)
103
104
104
105
##Defining the country, state and county columns
105
106
x<-tidyr::separate(
@@ -119,7 +120,6 @@ checkCoord <- function(x,
119
120
paste0("ok_", x[ids.gazet, res.gazet], "_gazet")
120
121
ids.no.coord<-x[, orig.coord] %in%"no_coord"
121
122
geo.check[ids.no.coord] <-"no_cannot_check"
122
-
#rafl: checar com mais dados se pode ter NAs ou outras classes
0 commit comments