Learn R Programming

⚠️There's a newer version (0.5-11) of this package.Take me there.

easyr (version 0.5-8)

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

315

Version

0.5-8

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Bryce Chamberlain

Last Published

January 11th, 2022

Functions in easyr (0.5-8)

coalf

Factor-friendly Coalesce
clear.cache

Clear Cache
getbetterint

Get better Int
cache.ok

Check Cache Status
cblind

cblind
isdate

Shorthand for lubridate::is.Date
getinfo

Get Info
isfac

Shorthand for is.factor
cc

Concatenate.
begin

Begin
binbyvol

Bin by Volume
null

Shorthand for is.null
ecopy

Copy to Clipboard
eq

NA-Friendly Equality Comparison
headers_row

Identify headers row.
hashfiles

Hash Files
pad0

Pad with Zeros
match.factors

Match Factors.
charnum

Check for Number Formatted as Character.
astext

As Text
checkeq

Check Value or Control Total
gr

Golden Ratio
jrepl

Join and Replace Values.
mid

mid
%ni%

Not-In
left

left
mdiff

Date Difference in Months
na

Shorthand for is.na
read.any

Read Any File
sch

Search a Data Frame.
atype

Auto-Type
spl

Sample
isval

Is Valid / Is a Value / NA NULL Check
read.txt

Read File as Text
todate

Convert to Date
isnum

Shorthand for is.numeric
namesx

Names Like
runfolder

Run Folder
right

right
tobool

Convert to Logical/Boolean
tonum

Convert to Number
tochar

Shorthand for as.character
ydiff

Date Difference in Years
qdiff

Date Difference in Quarters
rany_fixColNames

Fix column names.
nan

Shorthand for is.nan
sumnum

Summarize All Numeric Columns
tcmsg

tryCatch with Message
validate.equal

Validate Equal
usepkg

Use Package
drows

Get Rows with Duplicates
cache.init

Initialize cache.
bindf

Bind Rows with Factors
dict

Get Data Dictionary
char2fac

Characters to Factors
fldict

Get Data Dictionary for Files in Folder
fmat

Number Formatter
likedate

Like Date
ljoinf

Left Join with Factors
nastrings

NA Strings
nanull

NA / NULL Check
fac2char

Factors to Characters
crun

Concatenate and run.
ddiff

Date difference (or difference in days).
ijoinf

Inner Join with Factors
fjoinf

Full Join with Factors
rx

Read Excel
ischar

Shorthand for is.character
strx

Structure with Like
states

states
w

Write
xldate

Convert Excel Number to Date
save.cache

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

Transpose at Column.
tcwarn

tryCatch with warning