Package: codecountR 0.0.4.8

Philippe Cohard

codecountR: Counting Codes in a Text and Preparing Data for Analysis

Data analysis often requires coding, especially when data are collected through interviews, observations, or questionnaires. As a result, code counting and data preparation are essential steps in the analysis process. Analysts may need to count the codes in a text (Tokenization, counting of pre-established codes, computing the co-occurrence matrix by line) and prepare the data (e.g., min-max normalization, Z-score, robust scaling, Box-Cox transformation, and non-parametric bootstrap). For the Box-Cox transformation (Box & Cox, 1964, <https://www.jstor.org/stable/2984418>), the optimal Lambda is determined using the log-likelihood method. Non-parametric bootstrap involves randomly sampling data with replacement. Two random number generators are also integrated: a Lehmer congruential generator for uniform distribution and a Box-Muller generator for normal distribution. Package for educational purposes.

Authors:Philippe Cohard [aut, cre]

codecountR_0.0.4.8.tar.gz
codecountR_0.0.4.8.tar.gz(r-4.5-noble)codecountR_0.0.4.8.tar.gz(r-4.4-noble)
codecountR_0.0.4.8.tgz(r-4.4-emscripten)codecountR_0.0.4.8.tgz(r-4.3-emscripten)
codecountR.pdf |codecountR.html
codecountR/json (API)

# Install 'codecountR' in R:
install.packages('codecountR', repos = 'https://cloud.r-project.org')

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

2.48 score 381 downloads 15 exports 0 dependencies

Last updated 1 months agofrom:1df0f5e8c7. Checks:3 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 31 2025
R-4.5-linuxOKMar 31 2025
R-4.4-linuxOKMar 31 2025

Exports:analysCodesListbootStrapBoxAndCoxBoxMullerGencodeCountcongruGencoocloadCodesnormMinMaxrobustScalsubCalcBoxAndCoxtestPairstokenizationverifyzScore

Dependencies:

How_to_use_codeCountR

Rendered fromHow_to_use_this_package.Rmdusingknitr::rmarkdownon Mar 31 2025.

Last update: 2023-08-16
Started: 2023-08-16

Citation

To cite package ‘codecountR’ in publications use:

Cohard P (2025). codecountR: Counting Codes in a Text and Preparing Data for Analysis. R package version 0.0.4.8, https://CRAN.R-project.org/package=codecountR.

Corresponding BibTeX entry:

  @Manual{,
    title = {codecountR: Counting Codes in a Text and Preparing Data
      for Analysis},
    author = {Philippe Cohard},
    year = {2025},
    note = {R package version 0.0.4.8},
    url = {https://CRAN.R-project.org/package=codecountR},
  }

Readme and manuals

Help Manual

Help pageTopics
analysCodesListanalysCodesList
bootStrapbootStrap
BoxAndCoxBoxAndCox
BoxMullerGenBoxMullerGen
codeCountcodeCount
congruGencongruGen
cooccooc
loadCodesloadCodes
normMinMaxnormMinMax
robustScalrobustScal
subCalcBoxAndCoxsubCalcBoxAndCox
testPairstestPairs
tokenizationtokenization
verifyverify
zScorezScore