Learn R Programming

easyr (version 0.5-11)

Helpful Functions from Oliver Wyman Actuarial Consulting

Description

Makes difficult operations easy. Includes these types of functions: shorthand, type conversion, data wrangling, and work flow. Also includes some helpful data objects: NA strings, U.S. state list, color blind charting colors. Built and shared by Oliver Wyman Actuarial Consulting. Accepting proposed contributions through GitHub.

Copy Link

Version

Install

install.packages('easyr')

Monthly Downloads

396

Version

0.5-11

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Bryce Chamberlain

Last Published

March 9th, 2023

Functions in easyr (0.5-11)

eq

NA-Friendly Equality Comparison
ecopy

Copy to Clipboard
checkeq

Check Value or Control Total
charnum

Check for Number Formatted as Character.
clear.cache

Clear Cache
dict

Get Data Dictionary
drows

Get Rows with Duplicates
coalf

Factor-friendly Coalesce
fmat

Number Formatter
fldict

Get Data Dictionary for Files in Folder
fac2char

Factors to Characters
likedate

Like Date
isdate

Shorthand for lubridate::is.Date
isfac

Shorthand for is.factor
ljoinf

Left Join with Factors
fjoinf

Full Join with Factors
getinfo

Get Info
ddiff

Date difference (or difference in days).
crun

Concatenate and run.
getbetterint

Get better Int
isnum

Shorthand for is.numeric
isval

Is Valid / Is a Value / NA NULL Check
hashfiles

Hash Files
gr

Golden Ratio
nanull

NA / NULL Check
right

right
ijoinf

Inner Join with Factors
read.any

Read Any File
%ni%

Not-In
tcol

Transpose at Column.
ischar

Shorthand for is.character
mid

mid
sch

Search a Data Frame.
spl

Sample
na

Shorthand for is.na
nastrings

NA Strings
states

states
strx

Structure with Like
null

Shorthand for is.null
headers_row

Identify headers row.
jrepl

Join and Replace Values.
read.txt

Read File as Text
left

left
pad0

Pad with Zeros
rx

Read Excel
nan

Shorthand for is.nan
runfolder

Run Folder
namesx

Names Like
qdiff

Date Difference in Quarters
rany_fixColNames

Fix column names.
tonum

Convert to Number
todate

Convert to Date
match.factors

Match Factors.
save.cache

Save Cache Saves the arguments to a cache file, using the cache.num last checked with cache.ok.
sumnum

Summarize All Numeric Columns
ydiff

Date Difference in Years
usepkg

Use Package
tobool

Convert to Logical/Boolean
tochar

Shorthand for as.character
mdiff

Date Difference in Months
tcmsg

tryCatch with Message
validate.equal

Validate Equal
w

Write
tcwarn

tryCatch with warning
xldate

Convert Excel Number to Date
cache.init

Initialize cache.
cc

Concatenate.
atype

Auto-Type
begin

Begin
bindf

Bind Rows with Factors
binbyvol

Bin by Volume
astext

As Text
char2fac

Characters to Factors
cblind

cblind
cache.ok

Check Cache Status