Fix type error in frequencies over domains example

In tidyverse not everything is a factor.

Change-Id: I91dbdc8fefbab65f4a7d5203fbb8a9cb70631a0a
diff --git a/demo/frequenciesOverDomains.R b/demo/frequenciesOverDomains.R
index 12b2edc..a991e25 100755
--- a/demo/frequenciesOverDomains.R
+++ b/demo/frequenciesOverDomains.R
@@ -9,9 +9,9 @@
   g <- corpusQuery(con, query = query, vc="") %>%
     fetchAll() %>%
     slot("collectedMatches") %>%
-    mutate(Domain = sapply(strsplit(as.character(.$textClass), " "), `[[`, 1)) %>%
+    mutate(Domain = factor(sapply(strsplit(as.character(.$textClass), " "), `[[`, 1))) %>%
     group_by(Domain) %>%
-    filter(!is.na(Domain)) %>%
+    dplyr::filter(!is.na(Domain)) %>%
     summarise(count = dplyr::n()) %>%
     mutate(tokens = (corpusStats(con, sprintf("textClass = /%s.*/", .$Domain)))$tokens) %>%
     ci(x = count) %>%