Cheatography
https://cheatography.com
This is a Summary of the Lecture 1
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Basic operators and functions
|
exact equality |
|
unequal |
|
bigger |
|
smaller |
|
bigger or equal |
|
smaller or equal |
|
addition |
|
subtraction |
|
multiplication |
|
division |
|
power |
|
square root |
|
exponential |
|
logarithm |
|
sine |
|
cosine |
|
tangent |
|
range min max |
|
minimum |
|
maximum |
|
number of elementsn |
|
sum |
|
mean |
|
variance |
R as a giant pocket calculator (**Basics)
|
Commands and Assignments
Valid names?
|
Help commands? help.start() help.search("something") help(function) ?function apropos("something")
|
Commands? x<-24+10 {x<-24+10; sqrt(9); 1+1} assign("x", 1+1)
|
Matrix? data <-
c(1,2,3,4,5,6,7,8,9)
matrix(data,nrow=3,
ncol=3,byrow=TRUE)
|
|
|
Relax?
fortune()
is a function from the fortunes package that contains anecdotes |
CRAN task views
install.packages("ctv")
library(ctv)
available.views()
install.views("Psychometrics",
coreOnly=TRUE)
update.views("Psychometrics")
MORE
|
|
|
|