README.md

bd

Travis-CI Build Status

A suite of helper functions; including utils and summary statistics.

The easiest way to install the bd package is via the devtools package:

devtools::install_github("brechtdv/bd")
library("bd")

Available functions

Utils
openwd Open working directory. collapse Collapse elements without separator. write_cb Write to Windows clipboard. read_cb Read from Windows clipboard. today Return today's date in yyyymmdd format. now Return current time. extract_pubmed Extract data from PubMed file. convert Read and save as. multiplot Plot multiple ggplot2 objects. prop_table Return proportional table. dropbox Path to dropbox folder. github Path to GitHub folder. sanitize_specials Translate special characters to HTML or LaTeX. html_body RMarkdown template for HTML body only. readxl Read Excel file using readxl package, but save as data.frame instead of tibble. quiet_source Source a file without printing or plotting.
Summary statistics
summary_stats Calculate summary statistics. mean_ci Calculate mean and 95% confidence interval. hpd Highest posterior density interval. sem Calculate standard error of the mean. cv Calculate coefficient of variation.
Statistical functions
logit Logistic transformation. expit Inverse logistic transformation. rgamma2 Simulate random Gamma deviates with specified mean and standard deviation. rlnorm2 Simulate random log-normal deviates with specified mean and standard deviation.

brechtdv/bd documentation built on June 19, 2019, 8:53 p.m.