❮ Index
❯
TOC: R Programming
- R - basics
- Background
- Alternatives
- Install R
- Install R Studio
- Launch interactive R, get help, and quit
- Running R on the command line using Rscript
- Comments
- R and simple math operations
- R variables
- R assignment (left-assignment, right-assignment)
- Variable types (numeric, character, logical, function)
- Variable types are deducted
- paste (join) strings and numbers together
- Operator preference order and parentheses
- Operators comparing numbers
- Operators comparing strings (characters)
- Convert string (character) to numeric
- Boolean (logical) operations
- Concatenate strings
- Convert between types using as.
- Printing with cat
- Vectors
- R vectors
- Variable types of vectors are deducted
- One element vector is the same a single value
- Sum of values in vectors
- Size of vector (length of vector)
- Access the n-the element of a vector
- R Vector: Negative index, exclude element
- R vector: Access several elements (slice)
- R vector: Exclude several elements
- Some basic statistical functions
- 3 ways to create vectors
- R - sequences and ranges
- Range of numbers
- Filter values
- Index of true elements - which
- which
- Matix TBD
- Vector operations - reuse values from shorter vector
- Summary of numeric data
- Change element of vector
- Assign vector to another name
- Reverse vector
- Sort vector
- Sort using order
- Operators comparing vectors
- Convert vector of strings to numerics
- Repeate the same number
- Boolean (logical) operations on vectors
- Factors
- Append to end of vector
- Data Frames
- Strings (characters)
- Functions
- Testing
- Files
- Graphs
- Packages
- Other