Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb6ae1d4

Browse files
committed
Fix#22
1 parent6e26f4f commitb6ae1d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎R/getFiat.R‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ getFiat <- function(country = NULL, state = NULL, county = NULL, fip = NULL) {
7676
},
7777
error=function(e){NULL })
7878

79-
if(is.null(ret)){
79+
ret=ret[!sf::st_is_empty(ret),]
80+
81+
if(is.null(ret)| nrow(ret)==0 ){
8082
ret= list_states()
8183
ret=ret[tolower(ret$region)%in% tolower(state),]
8284
ret= merge(
@@ -85,8 +87,6 @@ getFiat <- function(country = NULL, state = NULL, county = NULL, fip = NULL) {
8587
all.x=TRUE)
8688
}
8789

88-
ret=ret[!sf::st_is_empty(ret),]
89-
9090
if(nrow(ret)==0 ){ stop('State, county pair(s) not found',call.=FALSE) }
9191

9292
map2<-ret

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp