R: Miscellaneous R Functions and Aliases

# Miscellaneous R Functions and Aliases

## Documentation for package ‘hutils’ version 2.0.0

- DESCRIPTION file
- User guides, package vignettes and other documentation
- Package NEWS
- Package README

## Help Pages

hutils-package | hutils package
%<->% | Swap assignment
%ein% | Exists and (not) in
%enotin% | Exists and (not) in
%implies% | #' Logical implies
%notchin% | Negation of in (character)
%notin% | Negation of in
%pin% | Partial in
ahull | Maximum area given x and y coordinates
aliases | Aliases
all_same_sign | Determine whether a vector is all of the same sign
AND | Aliases
any_grepl | Does the pattern appear anywhere?
auc | AUC
average_bearing | Average of bearings
average_bearing_n | Average of bearings
bearing | Bearing calculations
coalesce | Find first non-missing element
compass2bearing | Bearing calculations
dev_copy2a4 | Copy device to an A4 PDF
dir2 | List many files
drop_col | Drop column or columns
drop_colr | Drop columns whose names match a pattern
drop_cols | Drop column or columns
drop_constant_cols | Drop constant columns
drop_empty_cols | Drop empty columns
drop_grep | Drop columns whose names match a pattern
duplicated_rows | Return duplicated rows of data.table
easterly_component | Bearing calculations
find_pattern_in | Find string pattern in (text) file
fst_columns | Utilities for 'fst' files
fst_nrow | Utilities for 'fst' files
generate_LaTeX_manual | Generate LaTeX manual of installed package
goto_pattern_in | Find string pattern in (text) file
has_unique_key | Unique keys
haversine_distance | Distance between two points on the Earth
if_else | Vectorized if
implies | #' Logical implies
isAttached | Is a package attached?
isTrueFalse | Logical assertions
longest_affix | Longest common prefix/suffix
longest_prefix | Longest common prefix/suffix
longest_suffix | Longest common prefix/suffix
mean_na | Proportion of values that are NA.
Mode | Statistical mode
mutate_ntile | Add a column of ntiles to a data table
mutate_other | Group infrequent entries into 'Other category'
NEITHER | Aliases
neither | Aliases
ngrep | Anti-grep
NOR | Aliases
nor | Aliases
northerly_component | Bearing calculations
OR | Aliases
pow | Aliases
prohibit_unequal_length_vectors | Prohibit unequal length vectors
prohibit_vector_recycling | Prohibit vector recycling
prohibit_vector_recycling.MAXLENGTH | Prohibit vector recycling
provide.dir | Provide directory
provide.file | Provide a file
replace_pattern_in | Replace string pattern in text file
report_error | Report errors and warnings
RQ | Shorthand for 'requireNamespace'
samp | Safer sampler
selector | Fast selection of 'data.table' columns
select_grep | Select names matching a pattern
select_which | Select columns satisfying a condition
seq_nrow | Generate sequence of row numbers
set_colsuborder | Put columns first or last
set_cols_first | Put columns first or last
set_cols_last | Put columns first or last
set_unique_key | Unique keys
swap | Swap assignment
Switch | Vectorized switch
trim_common_affixes | Longest common prefix/suffix
unique-keys | Unique keys
weight2rows | Expand a weighted data frame to an equivalent unweighted
weighted_ntile | Weighted (ranked) quantiles
weighted_quantile | Weighted quantile
XOR | Aliases