R Snippets¶
This is not an R tutorial or book. This is a handy collection of snippets of R code for achieving various statistical analysis and visualization tasks. If you wish to learn R from beginning, try the books listed on www.bookdown.org. However, if you are familiar with R and want to quickly refresh your memory or look for code for specific tasks, you can refer to these notes.
- 1. R Scripting Environment
- 2. Core Data Types
- 3. Language Facilities
- 3.1. Operator precedence rules
- 3.2. Expressions
- 3.3. Flow Control
- 3.4. Functions
- 3.5. Packages
- 3.6. R Scripts
- 3.7. Logical Tests
- 3.8. Introspection
- 3.9. Coercion
- 3.10. Sorting and Searching
- 3.11. Basic Mathematical Functions
- 3.12. Built-in Constants
- 3.13. Converting Numerical Data to Factor
- 3.14. Apply Family of Functions
- 3.15. Missing Data
- 3.16. Classes
- 3.17. Defining our own operators
- 4. File System and Simple IO
- 5. Text Processing
- 6. Data Manipulation
- 7. Linear Algebra
- 8. Real Analysis
- 9. Discrete Mathematics
- 10. Probability
- 11. Statistics
- 12. Graphics
- 13. Optimization
- 14. Statistical Models
- 15. Clustering
- 16. Utilities
- 17. Object Oriented Programming
- 18. R Packages
- 19. Data Sets
- 20. Tips
- 21. Kaggle