Miscellaneous Helper Functions for Common PK or Analytical Chemistry Tasks

Candidates | Contributions to King County, WA, 2020 political candidates |

centerBin | Cut a set of numeric data into bins based on the middle value... |

ConcTime | Example concentration-time data |

Cotinine | Example data for converting data.frames from long to wide... |

countWords | Count the number of words in each item in a vector or list |

cutNumeric | Cut numeric data into bins with vector output |

dateConv | Convert dates from numbers to Date |

elimFit | Calculate the elimination rate(s) for a concentration-time... |

ExStdCurve | Example data for using stdCurve function |

findAllDup | Find locations of all duplicates, not just the first |

formatXL | Format data with font colors, font sizes, alignments,... |

formatXL_head | Save an Excel file with standard formatting for the header... |

gg_color_hue | Select colors evenly spaced around the color wheel |

gm_95CI | Calculate the geometric 95 percent confidence interval |

gm_mean | Calculate the geometric mean |

gm_sd | Calculate the geometric standard deviation |

importChrom | Import an Agilent MassHunter chromatogram from a csv file... |

mean_sd | Calculate mean +/- sd or other parameters with appropriate... |

Metformin | Example data for data manipulation, graphing |

noncompAUC | Calculate the AUC using the trapezoidal rule |

Oxycodone | Example data for data manipulation, graphing |

Pets | Example data for joining data.frames |

starSig | Add stars to an appropriately rounded p value to indicate... |

stdCurve | Fit data to a standard curve |

stdCurve_fitcompare | Compare two fitted standard curves |

str_comma | Collapse a vector of character strings into one readable... |

str_split_alt | Split a string of text by a specified pattern and return a... |

Students | Example data for data manipulation, data checking, etc. |

timeConv | Convert times from numbers to POSIXct |

tukeyStar | ggplot2 boxplots of ANOVA results |

UWsalaries | Salaries of University of Washington employees from 2014-2018... |

WALeg | Contributions to candidates for the Washington State... |

whichDif | Determine which columns differ in a two-row data.frame |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.