commit | 23004c6d9c1c3dae1aa94beea3da554bdbc25bc2 | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Tue Sep 06 10:55:28 2022 +0200 |
committer | Marc Kupietz <kupietz@ids-mannheim.de> | Tue Sep 06 11:40:10 2022 +0200 |
tree | 6e41e42c109753250a0a6fa7fddf28758b0a277e | |
parent | 163a6fae8f0dfee194fe636941e531f0b39b5293 [diff] [blame] |
use slice_head instead of head for potential tibbles Change-Id: I1ce68ed52209ebaf22e0e29df9ac7281d83e4bc8
diff --git a/R/collocationAnalysis.R b/R/collocationAnalysis.R index a2d6c5d..d933e83 100644 --- a/R/collocationAnalysis.R +++ b/R/collocationAnalysis.R
@@ -144,7 +144,7 @@ if (nrow(candidates) > 0) { candidates <- candidates %>% filter(frequency >= minOccur) %>% - head(topCollocatesLimit) + slice_head(n=topCollocatesLimit) collocationScoreQuery( kco, node = node,