Here I maintain a list of R tips and tricks that I find useful. Please comment in below if you find something useful but not listed.
R tips and tricks
Avoid using for loops in R as much as possible; use apply, sapply, etc., or some R pre-packaged functions such as cumsum and aggregate so that for loops might be avoided.
Dealing with large dataset:
- The function fread in the data.table package is very useful.