Learn R Programming

⚠️There's a newer version (0.3.0) of this package.Take me there.

utile.tools

Overview

Tools for preparing and summarizing data for publication purposes. Includes functions for tabulating models, producing human-readable summary statistics from raw data, macros for calculating duration of time, and simplistic hypothesis testing tools.

Verbs

Paste

  • paste() & paste0: The base functions with an added 'na.rm' parameter for nested NA removal. Default function behavior is identical to base counterparts.
  • paste_freq(): Pastes a human-readable frequency from count(able) data. Handily has methods for several types of data.
  • paste_median(): Pastes a human-readable median with inter-quartile range from numeric data.
  • paste_mean(): Pastes a human-readable mean with standard deviation from numeric data.
  • paste_efs(): Pastes a human-readable event-free-survival from a survfit object and a specified time point.

Calc

  • calc_duration(): Calculates the duration of time between two provided date objects. Essentially a macro of lubridate:: functions with extra logic built in.
  • calc_chunks(): Calculates mapped "chunk" indices for a data object given a specified chunk size (e.g. number of rows in a tibble).

Test

  • test_hypothesis(): Retrieves a p-value from null hypothesis testing of stratified continuous or categorical data. Provides parametric and non-parametric testing options (see docs).

Chunk

  • chunk_data_(): Creates a factory function which returns chunks of a given data object (table, vector) with successive function calls.

Copy Link

Version

Install

install.packages('utile.tools')

Monthly Downloads

327

Version

0.2.8

License

LGPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

November 20th, 2022

Functions in utile.tools (0.2.8)

calc_duration

Calculate durations of time
paste

Concatenate strings
paste_efs

Paste event-free survival
paste_freq

Paste frequency
calc_cumsum

Calculate cumulative summation of vector
paste_median

Paste median
chunk_data_

Break data into chunks
test_hypothesis

Test the null hypothesis
calc_chunks

Calculate data chunk indices
paste_mean

Paste mean