R: Additional Operators to Help You Write Cleaner R Code

# Additional Operators to Help You Write Cleaner R Code

## Documentation for package ‘roperators’ version 1.4.0

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

## Help Pages

A B C D F G I L M N O P Q R S T V W misc

## -- A --

all_cc | Statistics/Summaries with (Only) Missing Data Removed
all_good_for_calcs | Type checks
any_bad_for_calcs | Type checks
any_cc | Statistics/Summaries with (Only) Missing Data Removed
arithmetic_sugar | Arithmetic convenience operators
as.class | Cleaner type-conversion functions
as.percent | Format a proportion as a percentage string
assign_ops | Assignment (in-place modifier) operators

## -- B --

bool | Cleaner type-conversion functions

## -- C --

cat0 | Paste and cat helpers
catN | Paste and cat helpers
check_ext_against | File Extension Checks
choose_permute | Choose and permute operators
chr | Cleaner type-conversion functions
colMeans_cc | Statistics/Summaries with (Only) Missing Data Removed
colSums_cc | Statistics/Summaries with (Only) Missing Data Removed
comparisons | Comparison operators with better missing-value handling
complete_cases | Statistics/Summaries with (Only) Missing Data Removed
content_checks | Vector content checks
cor_cc | Statistics/Summaries with (Only) Missing Data Removed
cov_cc | Statistics/Summaries with (Only) Missing Data Removed

## -- D --

dbl | Cleaner type-conversion functions

## -- F --

f | String interpolation (f-strings for R)
f.as.numeric | Convert a factor with numeric labels into a numeric vector
file_checks | File Extension Checks
floating_point_comparisons | Floating-point comparison operators

## -- G --

get_1st | Get the first, last, n-th, or most frequent element or word
get_1st_word | Get the first, last, n-th, or most frequent element or word
get_last | Get the first, last, n-th, or most frequent element or word
get_last_word | Get the first, last, n-th, or most frequent element or word
get_latest_CRAN_version | Operating system and environment checks
get_most_frequent | Get the first, last, n-th, or most frequent element or word
get_most_frequent_word | Get the first, last, n-th, or most frequent element or word
get_nth | Get the first, last, n-th, or most frequent element or word
get_nth_word | Get the first, last, n-th, or most frequent element or word
get_os | Operating system and environment checks
get_R_version | Operating system and environment checks
get_R_version_age | Operating system and environment checks
get_system_python | Operating system and environment checks

## -- I --

int | Cleaner type-conversion functions
integrate | Inline integration operator
IQR_cc | Statistics/Summaries with (Only) Missing Data Removed
is.atomic_nan | Type checks
is.bad_and_equal | Type checks
is.bad_for_calcs | Type checks
is.bad_for_indexing | Type checks
is.binary | Vector content checks
is.character_or_null | Type checks
is.constant | Vector content checks
is.df_or_null | Type checks
is.good_for_calcs | Type checks
is.good_for_indexing | Type checks
is.http_available | Operating system and environment checks
is.irregular_list | Type checks
is.list_or_null | Type checks
is.logical_or_null | Type checks
is.null_or_na | Type checks
is.numeric_or_null | Type checks
is.os_arm | Operating system and environment checks
is.os_lnx | Operating system and environment checks
is.os_mac | Operating system and environment checks
is.os_unx | Operating system and environment checks
is.os_win | Operating system and environment checks
is.os_x64 | Operating system and environment checks
is.RStudio | Operating system and environment checks
is.R_revo | Operating system and environment checks
is.R_x64 | Operating system and environment checks
is.scalar | Type checks
is.scalar_or_null | Type checks
is_csv_file | File Extension Checks
is_excel_file | File Extension Checks
is_rdata_file | File Extension Checks
is_rda_file | File Extension Checks
is_rds_file | File Extension Checks
is_r_file | File Extension Checks
is_spss_file | File Extension Checks
is_txt_file | File Extension Checks

## -- L --

length_cc | Statistics/Summaries with (Only) Missing Data Removed
library.force | Load a package, installing it first if necessary
logicals | Logical operators

## -- M --

mad_cc | Statistics/Summaries with (Only) Missing Data Removed
max_cc | Statistics/Summaries with (Only) Missing Data Removed
mean_cc | Statistics/Summaries with (Only) Missing Data Removed
median_cc | Statistics/Summaries with (Only) Missing Data Removed
min_cc | Statistics/Summaries with (Only) Missing Data Removed

## -- N --

num | Cleaner type-conversion functions
n_unique | Count the number of unique values
n_unique_cc | Statistics/Summaries with (Only) Missing Data Removed

## -- O --

os | Operating system and environment checks

## -- P --

paste_ | Paste and cat helpers
paste_and_cat | Paste and cat helpers
paste_oxford | Paste and cat helpers
paste_series | Paste and cat helpers
pattern_matching | SQL-style pattern-matching operators
prod_cc | Statistics/Summaries with (Only) Missing Data Removed

## -- Q --

quantile_cc | Statistics/Summaries with (Only) Missing Data Removed

## -- R --

range_cc | Statistics/Summaries with (Only) Missing Data Removed
read.psv | Read tab- or pipe-separated files
read.tsv | Read tab- or pipe-separated files
require.force | Load a package, installing it first if necessary
rowMeans_cc | Statistics/Summaries with (Only) Missing Data Removed
rowSums_cc | Statistics/Summaries with (Only) Missing Data Removed

## -- S --

sd_cc | Statistics/Summaries with (Only) Missing Data Removed
seq_around | Sequence of evenly spaced points around an origin
string_arithmetic | String arithmetic operators
sum_cc | Statistics/Summaries with (Only) Missing Data Removed

## -- T --

type_checks | Type checks

## -- V --

var_cc | Statistics/Summaries with (Only) Missing Data Removed

## -- W --

weighted.mean_cc | Statistics/Summaries with (Only) Missing Data Removed

## -- misc --

%*=% | Assignment (in-place modifier) operators
%+% | String arithmetic operators
%+-% | Arithmetic convenience operators
%+=% | Assignment (in-place modifier) operators
%-% | String arithmetic operators
%-=% | Assignment (in-place modifier) operators
%/0% | Arithmetic convenience operators
%/=% | Assignment (in-place modifier) operators
%<=% | Comparison operators with better missing-value handling
%<~% | Floating-point comparison operators
%==% | Comparison operators with better missing-value handling
%===% | Comparison operators with better missing-value handling
%><% | Comparison operators with better missing-value handling
%>=% | Comparison operators with better missing-value handling
%>=<% | Comparison operators with better missing-value handling
%>~% | Floating-point comparison operators
%aon% | Logical operators
%C% | Choose and permute operators
%else% | Inline fallback for expressions that might error
%integrate% | Inline integration operator
%log=% | Assignment (in-place modifier) operators
%na<-% | Assign a value to a vector's missing values
%ni% | Logical operators
%P% | Choose and permute operators
%perl% | SQL-style pattern-matching operators
%regex<-% | Assign to a vector only where a regular expression matches
%regex=% | Modify an object in place by regular expression
%rlike% | SQL-style pattern-matching operators
%root=% | Assignment (in-place modifier) operators
%s*% | String arithmetic operators
%s/% | String arithmetic operators
%xor% | Logical operators
%^=% | Assignment (in-place modifier) operators
%~% | Fuzzy (case- and whitespace-insensitive) string equality
%~=% | Floating-point comparison operators