Open
Description
See the subj. Discovered this after updating my teaching materials. Starting from line
the code in the tutorial should not work.Error:
! `topfeatures.fcm()` was deprecated in quanteda 4.0 and is now defunct.
What would be the new way to get the top 50 features as in the linked tutorial? I tried Kenneth's topfeatures.fcm
from quanteda/quanteda#2141 (the top message), and it works but the method is not sensitive to changes in n
parameter. It always returns 10 items for some reason.
Thanks!
sessionInfo()
sessionInfo()
R version 4.4.2 (2024-10-31)
Platform: aarch64-apple-darwin20
Running under: macOS Sequoia 15.1.1
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.0
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
time zone: Europe/Berlin
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] quanteda.textstats_0.97.2 quanteda.corpora_0.9.2
[3] quanteda.textplots_0.94.4 quanteda_4.1.0
loaded via a namespace (and not attached):
[1] Matrix_1.7-1 gtable_0.3.5 jsonlite_1.8.8
[4] dplyr_1.1.4 compiler_4.4.2 stopwords_2.3
[7] tidyselect_1.2.1 Rcpp_1.0.13-1 nsyllable_1.0.1
[10] scales_1.3.0 yaml_2.3.8 fastmap_1.2.0
[13] coda_0.19-4.1 lattice_0.22-6 ggplot2_3.5.1
[16] R6_2.5.1 generics_0.1.3 knitr_1.47
[19] htmlwidgets_1.6.4 ggrepel_0.9.5 tibble_3.2.1
[22] statnet.common_4.9.0 munsell_0.5.1 pillar_1.9.0
[25] rlang_1.1.4 utf8_1.2.4 fastmatch_1.1-4
[28] stringi_1.8.4 lexicon_1.2.1 xfun_0.45
[31] cli_3.6.2 withr_3.0.0 magrittr_2.0.3
[34] network_1.18.2 digest_0.6.37 grid_4.4.2
[37] lifecycle_1.0.4 vctrs_0.6.5 syuzhet_1.0.7
[40] sna_2.7-2 data.table_1.15.4 evaluate_0.24.0
[43] glue_1.7.0 farver_2.1.2 fansi_1.0.6
[46] colorspace_2.1-0 rmarkdown_2.27 tools_4.4.2
[49] pkgconfig_2.0.3 htmltools_0.5.8.1
Metadata
Metadata
Assignees
Labels
No labels