Giter Club home page Giter Club logo

ktools's Introduction

ktools: An R Package With Useful Functions

Summary

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.

Installation Instructions

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.

Documentation

See help files for detailed documentation.

get_rank_diff – Calculate rank diff

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.

is.unique – Does a list contain duplicates.

Check if length(x) == length(unique(x)) and optionally print table.

library_pls – Library please! Easier Package Installation

If the last error was raised due to calling library() on a missing package, install from CRAN and load the package.

theme_kudusch - A minimal custom theme for ggplot2

Light mode (requires Menlo font) Light mode Dark mode (requires Menlo font) Dark mode

modus – Calculate mode.

Generic function for mode of a sample.

ptable – Faster 'prop.table(table())'

Wrapper for table() and prop.table(). Returns APA compliant percentage values from table data.

readRDS.gz – Read RDS w/ pigz support

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.

saveRDS.gz – Save RDS w/ pigz support

See readRDS.gz

readPasteboard - Read from the macOS pasteboard

readPasteboard() and its counterpart writePasteboard() are implementations of the clipboard-functions on macOS.

writePasteboard - Write to the macOS pasteboard

See readPasteboard

pairwise_count – Slightly faster widyr::pairwise_count() without the deprecation warnings

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.