This repository will host both the development and the production version of the package. There are no plans to commit to CRAN. It implements some useful functions and is mainly for my personal use.
Assuming you already have R installed (if not see http://www.r-project.org/), to installed, you can install the most recent development version using the devtools package.
if(!require(devtools)) install.packages("devtools")
devtools::install_github("kudusch/ktools@main")
Note that this will install the devtools
package and the ktools
package.
See help files for detailed documentation.
Implementation of a simple algorithm to find the difference between two corpora. The relative importance of the terms in tidy_x
are compared to the importance tidy_y
.
Check if length(x) == length(unique(x))
and optionally print table.
If the last error was raised due to calling library()
on a missing package, install from CRAN and load the package.
Light mode (requires Menlo font) Dark mode (requires Menlo font)
Generic function for mode of a sample.
Wrapper for table()
and prop.table()
. Returns APA compliant percentage values from table data.
This function uses pigz to read RDS files. pigz is a fully functional replacement for gzip that exploits multiple processors and multiple cores to the hilt when compressing data. pigz must be installed.
See readRDS.gz
readPasteboard()
and its counterpart writePasteboard()
are implementations of the clipboard-functions on macOS.
See readPasteboard
Does the same as widyr::pairwise_count()
just without the deprecated distinct_()
. So no more warnings! It is also slightly faster and uses a little less memory.