My Collection of Functions

acc | Absolute Average Accuracy |

age.years | Age Years |

ATR210 | ATR Bands |

bbref_leaderboard | Scrape Pitching or Hitting data from Baseball Reference |

btween | Between |

buy.sell | Buy/Sell Indicator |

cnt | Count number of non NA elements |

DateFunctions | Dates Functions |

ESPN_eligibility | Returns a full list of MLB players eligibility for hitters or... |

ESPN_proj | Returns projections for hitters or pitchers for a standard... |

extendForecast | Adding future dates to a forecast |

fangraphs_leaderboard | Scrape Batter Leaderboards from FanGraphs.com |

fast.rep | Faster version of rep fucntion |

find.matches | Set up a dataframe for regression |

griffun | My library of functions |

Heatmaps_leaderboard | Scrape Baseball Heatmaps leadersboards |

HRtracker_leaderboard | Scrape Home Run Tracker leadersboards |

ifna | Replace NA, NaN, Inf values |

ifnull | Replace NULL values |

iif | Faster version of ifelse function |

indx.xts | Fast alternative to indx() function for 'xts' object |

join | Join vector of strings into one string using delim |

len | Shortcut for length function |

load.packages | Load Packages that are available and install ones that are... |

make.xts | Create 'xts' object, faster version of 'xts' fucntion |

mlag | Lag matrix or vector |

normalize | Normalization |

read.excel | Excel data to R |

remove.outliers | Remove Outliers from a dataset |

repCol | Repeat Columns |

repRow | Repeat Rows |

reverse_name | Reverse First and Last Name |

SCTR | StockCharts Technical Rank |

seasonals | Seasonal Averages |

spl | Split string into tokens using delim |

statcast_leaderboard | Scrape Batted Ball Distance/Velocity Data from Baseball... |

str_detach | Detach prefixes or suffixes |

str_filter | Remove prefixes or suffixes |

summarize.by | Summarize content |

third.friday.month | Compute the expiration date of stock options (3rd Friday of... |

TimingFunctions | Begin Timing |

unadj.rsquared | Unadjusted R Squared |

WarGames_ESPN_proj | Returns projections for hitters pr pitchers for WAR Games... |

write.excel | R object to Excel |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.