Show Menu
Cheatography

R Studio for Statistics Cheat Sheet (DRAFT) by

For classical statistics

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Vectors

Create a Vector
x <- c(4,2,­1,3­,3,5,7)
Access to a value
x[c(1, 4)]
Determine the lenght
length(x)
Select values with restri­nction
x[x<=3]
Replace a value
x[c(4)] <- 8
Sort
sort(x)
Order
order(x)
 

Load and save file