commit | a1364c8e45b4efcb74da92efafc37c361a59f7bb | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Mon Feb 03 15:25:52 2020 +0100 |
committer | Gerrit Code Review <gerrit2@korap.ids-mannheim.de> | Mon Feb 03 15:25:52 2020 +0100 |
tree | 46f114a12720648fc4d7ade41493b9d7f8d51dd7 | |
parent | 5ccc838c83eedb950cd961420b8553c2840cf334 [diff] | |
parent | 3477fa73bd14a8cff5c05bc87284f82cd28ecfc7 [diff] |
Merge "Revert "frequencyQuery: stop with error if vc is empty""
diff --git a/R/KorAPQuery.R b/R/KorAPQuery.R index 5ba459b..cf848f0 100644 --- a/R/KorAPQuery.R +++ b/R/KorAPQuery.R
@@ -346,7 +346,6 @@ corpusQuery(kco, query, vc, metadataOnly = TRUE, as.df = TRUE, ...) %>% mutate(total = corpusStats(kco, vc=vc, as.df=TRUE)$tokens) } ) %>% - { if (.$total == 0) stop(paste0("Virtual corpus \"",vc, "\" is empty. Cannot calculate relative frequencies."), call. = FALSE) } ci(conf.level = conf.level) })