Skip to content

Commit

Permalink
Merge branch 'hotfix'
Browse files Browse the repository at this point in the history
  • Loading branch information
atusy committed Nov 21, 2018
2 parents f33711c + 1de8185 commit 39aaa45
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/read_qnt_elemw.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ read_qnt_elemw.0_cnd <- function(
# match pattern and return values
matched <- lapply(pattern, function(pattern) str_detect(x, pattern))

if(length(unique(lapply(matched, sum))) == 1) return(
if(
any(unlist(matched, use.names = FALSE)) &&
length(unique(lapply(matched, sum))) == 1
) return(
as.data.frame(lapply(matched, function(i) as.numeric(val[i])))
)

Expand Down

0 comments on commit 39aaa45

Please sign in to comment.