Miscellaneous R Functions and Aliases

Provides utility functions for, and drawing on, the 'data.table' package. The package also collates useful miscellaneous functions extending base R not available elsewhere. The name is a portmanteau of 'utils' and the author.


Travis-CI Build Status codecov.io AppVeyor Build Status Miscellaneous R functions and aliases

News

hutils 0.10.0

  • New function implies, logical implies.
  • New function drop_constant_cols
  • New function print_transpose_data_table for glimpsing data tables by rows
  • New alias pow for exponentiation.
  • Bug fixes:
    • Ensure drop_empty_cols retains non-empty columns when duplicate names are used.
    • coalesce errors if there is ... wrongly contains factors.

hutils 0.9.0

  • Changed if_else to reflect dplyr's formals so it can be a drop-in replacement.
  • Fix error for multi-length missing value in if_else when length-one condition.
  • Add vignette
  • Minor performance improvements

hutils 0.8.0

  • Added a NEWS.md file to track changes to the package.
  • New functions
    • %ein% %enotin% avoid misspellings in filters
    • AND, NEITHER, NOR, OR, nor, neither logical aliases
    • drop_colr drop columns matching pattern
    • ngrep negate regular expression
    • select_which similar to dplyr::select_if
    • set_colsuborder change the order of some columns without affecting the order of others
    • weight2rows convert a weighted data.table to an unweighted one by repeating rows by the weight
    • coalesce and if_else: lightweight versions of dplyr:: equivalents
  • Bug fixes:
    • set_cols_first|last now respects the order of the supplied columns
  • Enhancements:
    • mutate_other now accepts a mass argument as another way to generate an 'Other' column.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("hutils")

0.10.0 by Hugh Parsonage, a month ago


https://github.com/hughparsonage/hutils


Report a bug at https://github.com/hughparsonage/hutils/issues


Browse source code at https://github.com/cran/hutils


Authors: Hugh Parsonage [aut, cre]


Documentation:   PDF Manual  


GPL-3 license


Imports data.table, magrittr, stats, utils, fastmatch

Suggests testthat, datasets, dplyr, microbenchmark, knitr, rmarkdown, nycflights13, geosphere, ggplot2


Imported by TeXCheckR, grattan, heims.


See at CRAN