learnR is a tutorial for R programming language from basic to advanced levels. It includes basic concepts, motivations, principles and their application in data transformation, data analysis, data mining, statistical computing, financial computing, etc.
- Introduction to R programming language
- RStudio IDE
- Basic objects
- Vector (Numeric, Integer, Complex, Logical, Character)
- Matrix
- Array
- List
- Data frame
- Function
- Formula
- Basic expressions
- Assignment expression (
<-
,<<-
) - Conditional expression (
if else
) - Loop expression (
for
,while
)
- Assignment expression (
- Basic functions
- Environment functions
- Package functions
- Object functions
- Logical functions
- Character functions
- Math functions
- Statistical functions
- Data manipulation (data read/write, transformation)
- Higher-order functions
- Optimization functions
- Anonymous functions
- Meta-functions
- Plot functions
- Debugging in RStudio
- Essential statistics
- Preparing data
- Descriptive statistics
- Linear regression
- Statistical hypothesis testing
- Model analysis
- Time series model fit
- Essential data mining
- Using models
- Cross validation
- Design patterns
- R language mechanism
- Lazy evaluation
- Dynamic scoping
- Object searching
- Memory management
...
- Functions
- Environment
- Expression
- Call
- Data structures
- S3 object
- S4 object
- Database
- SQL
- Read/Write Excel Workbook via
{RODBC}
- Read/Write SQLite database via
{RSQLite}
- Use SQL to query data frames
- Parallel computing
{parallel}
{parallelMap}
{doParallel}
+{foreach}
{doParallel}
+{plyr}
- Functional programming
- Anonymous functions
- Closures
- Higher order functions
- Profiling
- Computing time tracking
- Memory use tracking
- Popular packages
- Read/Write JSON (
{jsonlite}
) - Process strings (
{stringr}
) - Transform data frame between long and wide formats(
{reshape2}
) - Iterate over vector, list, and data frame (
{plyr}
) - Handy data frame transformation (
{dplyr}
) - Nonlinear root finding (
{rootSolve}
) - [Nonlinear Optimization (
{Rsolnp}
) - Integrate R with C++ (
{Rcpp}
) - R Markdown Documenting (
{rmarkdown}
)
- Basic plots
- Scatter/line/bar/pie charts
- Composing plots
- Partitioning plots
- Graphics devices
- Interactive graphics
{ggplot2}