README.md

Utils R

Codacy Badge Build status Codecov test coverage

The utilsR package contains general utility functions for R. There are four groups of functions: column types, configuration read/update functions, creating folder structure/files, and logging functions.

Col Types

Functions:

Config

Functions:

Note: You can execute R code from within YAML configuration files by prefacing values with !expr. E.g.

x: !expr 1:10
config <- utilsR::read_yaml("./config.yaml")
config$x 

# prints 1  2  3  4  5  6  7  8  9 10

Folder Structure

Functions:

Logging

Functions:

open_log takes an argument fl, the name of the log file. The log functions also initiate time, so that it's easy to know how long a script file takes to run and logs the output all in one place.

General

%!in% does the opposite of %in%

Convert

Read



holmesjoli/utilsR documentation built on Aug. 13, 2019, 12:31 p.m.