Package index
Operators — arithmetic & strings
String arithmetic, in-place modifiers, regex assignment, and maths operators.
-
`%+%``%-%``%s*%``%s/%` - String arithmetic operators
-
`%+=%``%-=%``%*=%``%/=%``%^=%``%log=%``%root=%` - Assignment (in-place modifier) operators
-
`%+-%``%/0%` - Arithmetic convenience operators
-
`%regex=%` - Modify an object in place by regular expression
-
`%regex<-%` - Assign to a vector only where a regular expression matches
-
`%na<-%` - Assign a value to a vector's missing values
-
`%C%``%P%` - Choose and permute operators
-
`%integrate%` - Inline integration operator
Operators — comparison & logic
Comparisons that handle missing values and floating point, plus logical and pattern-matching operators.
-
`%==%``%===%``%>=%``%<=%``%><%``%>=<%` - Comparison operators with better missing-value handling
-
`%~=%``%>~%``%<~%` - Floating-point comparison operators
-
`%ni%``%xor%``%aon%` - Logical operators
-
`%rlike%``%perl%` - SQL-style pattern-matching operators
-
`%~%` - Fuzzy (case- and whitespace-insensitive) string equality
-
f() - String interpolation (f-strings for R)
-
as.percent() - Format a proportion as a percentage string
-
paste_()cat0()catN()paste_series()paste_oxford() - Paste and cat helpers
-
`%else%` - Inline fallback for expressions that might error
-
chr()int()dbl()num()bool()as.class() - Cleaner type-conversion functions
-
f.as.numeric() - Convert a factor with numeric labels into a numeric vector
-
is.scalar()is.scalar_or_null()is.numeric_or_null()is.character_or_null()is.logical_or_null()is.df_or_null()is.list_or_null()is.atomic_nan()is.irregular_list()any_bad_for_calcs()all_good_for_calcs()is.bad_for_indexing()is.good_for_indexing()is.bad_and_equal()is.bad_for_calcs()is.good_for_calcs()is.null_or_na() - Type checks
-
is.constant()is.binary() - Vector content checks
-
is_txt_file()is_csv_file()is_excel_file()is_r_file()is_rdata_file()is_rda_file()is_rds_file()is_spss_file()check_ext_against() - File Extension Checks
Vectors, extraction & statistics
Pull elements and words out of vectors, count uniques, build sequences, and run complete-cases summaries.
-
get_1st()get_last()get_nth()get_1st_word()get_last_word()get_nth_word()get_most_frequent()get_most_frequent_word() - Get the first, last, n-th, or most frequent element or word
-
n_unique() - Count the number of unique values
-
seq_around() - Sequence of evenly spaced points around an origin
-
length_cc()n_unique_cc()min_cc()max_cc()range_cc()all_cc()any_cc()sum_cc()prod_cc()mean_cc()median_cc()var_cc()cov_cc()cor_cc()sd_cc()weighted.mean_cc()quantile_cc()IQR_cc()mad_cc()rowSums_cc()colSums_cc()rowMeans_cc()colMeans_cc() - Statistics/Summaries with (Only) Missing Data Removed
System, environment & I/O
Detect the operating system and R environment, check file types, and read delimited files.
-
get_os()get_R_version()get_R_version_age()get_latest_CRAN_version()get_system_python()is.os_mac()is.os_win()is.os_lnx()is.os_unx()is.os_x64()is.os_arm()is.R_x64()is.R_revo()is.RStudio()is.http_available() - Operating system and environment checks
-
read.tsv()read.psv() - Read tab- or pipe-separated files
-
library.force()require.force() - Load a package, installing it first if necessary