This repo stores my custom solutions. KAF stands for Kazım Anıl Functions.
- Replaces an old value with a new value in many columns from a specified data.table.
- By 2018-08-31, it can also handle NA valus at high speed as well.
- If there are entries with more than one spaces in a text column, this function reduces the amount of spaces to 1.
- Replace empty rows with "NA" or "NULL" values.
- Cleans up tweets and instagram posts.
- Helps to clean tokens with specified rules from texts.
- Distance Calculator based on Latitude & Longitude of two locations.
- Calculates F1 Score using Precision and Recall values.
- Calculates F1 Score using True Positive, False Positive and False Negative values.
- Returns the day of the week in Turkish.
- Optimizes k value for k-Nearest-Neighbours algorithm given a training set.
- Makes a baseline prediction based on the training set using Naive Bayes algorithm.
- Automatically encodes character / factor columns into dummy variables.
- A brute-force algorithm which finds out prime numbers until the given limit.
- Calculates the seconds difference between two dates in HH:MM:SS format.
GGPlot2 Theme: An .R file which has my default ggplot2 schema.
RMD_Template for R Markdown:A .RMd file which stores the default settings for a R Markdown document.
TeX Template for R Markdown: A .tex file which stores the default settings for my PDF outputs from R Markdown files.
HTML Template for R Markdown: A .CSS file which stores the default settings for my HTML outputs from R Markdown files.