Quick and Essential 'R' Tricks for Better Scripts
Addin snippet function to add header comment to a current opened file
Addin snippet function to custom section comment
Snippet R function to clear console and set directory
Add index keys to a vector or data frame or list or matrix
Prompt guided duplication and editing of files
Listing of all CRAN archived R packages
Convert boolean values between formats
Generate a bionic text
Convert Categorical Values to Numeric Improvement to seq_along()
Clear environment, clear console, set work directory and load files
Replicate Columns in a Data Frame
Extract all comments or functions from a file
Compare histograms of two distributions
Mathematical constants
Create geometric shapes with optional text
Extract all IP addresses from a string
Remove elements from a data matching filter
Remove last n rows or column or specified elements from a data frame l...
Add data to another data like array_push in PHP
Duplicate a data rows or columns X times
Shuffle a data frame just like shuffle in PHP
Combine vector to create Date, or split Date into vector
Convert Dates into Numeric Week Counts
Check is numbers in a vector are decreasing or increasing
Advanced Outlier Detection in Numeric Data with Optional Grouping
Check if a data fits the distribution
Duplicate a file with global text replacement
Not empty
Error coalescing operator
Append date to filename
Fetch R package based on keyword
Create Tensor-Like Slices from a Data Frame or Matrix
Calculate geometric coefficient of variation, mean, or SD and round
Extract all dates from a string
Fetch GitHub Repository Creation & Last Updated Date
Check if a call or expression produces errors
Snippet function to add header to a current Rmd opened file
If number falls within a range of values and get closest values
Increment vector by value
Initialize new variables and objects
Shiny app function to insert string to current file in RStudio
Is file name extension(s) an image
Go back to previous directory
Learning Rate Scheduler
Load specific R libraries and clear environment
Add elements to a list like array_push in PHP
Shuffle a list object just like shuffle in PHP
Calculate the distance of points from the center of a cluster
Miscellaneous math computations: Corresponding m-m and quantile for co...
Decrease vector by value
Mix or Blend two or more colors
Mix or Blend colors between two or more colors
Calculate the Mode of a Numeric or Character Vector
Multi-Head Attention
Mutate only a subset of dataset intact
Cumulative Sum with NA Removal
Count the number of decimal places
Create and use a super variable with unique capabilities
Not in vector or array
Normalize a Numeric Vector to the Range [0, 1]
Not a data
Not duplicated elements
Not an environment
Not exists
File name extension(s) is Not an image
Not inherit from any of the classes specified
Not an integer
Not logical
Not NA
Not NULL
Not numeric
Not a vector
Generate a random number (integer)
Nullish coalescing operator
Detect Outliers in a Numeric Vector
Function to calculate the percentage of matching between two strings
Increment vector by value
Generate a random string
R Color Constant
Check whether an R package has been decommissioned in CRAN
Read a CSV and preview first X rows and columns
Read in a table and show first X rows and columns
Clear environment, clear console, set work directory and load files
Replicate Rows in a Data Frame
Re-sample a dataset by column and return number of entry needed
Set a variable only once
simple function chaining routine
Combine specific functions as store as one function
Sort vector by length or file types of its content
Split a string of values and return as boolean vector
Split a string of numbers and return as numeric vector
Calculate the Range Difference of a Numeric Vector
Get all the environment objects and their sizes
Switch the index of two columns in a data set
Switch the index of two rows in a data set
Track Function Usage and Performance
Remove Empty Lines from a File
Combine unique() and length()
Remove last n elements or specified elements from a vector like array_...
Add elements to a vector like array_push in PHP
Shuffle a vector just like shuffle in PHP
Convert Yes/No to Binary or Logical
Calculates Z-Scores of a distribution
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to improve your scripts. Improve the quality and reproducibility of 'R' scripts.