User Tools

Site Tools


math121b:r

This is an old revision of the document!


Programming in R

Cheat Sheat and Examples

Cheat Sheat

reference: CheatSheat PDF

assignment

  a <- 10

create a vector

  a = c(2,3,8,0)
Function What it Calculates
mean(x) Mean of the numbers in vector x.
median(x) Median of the numbers in vector x
var(x) Estimated variance of the population from which the numbers in vector x are sampled
sd(x) standard deviation, square root of var(x)
math121b/r.1587396989.txt.gz · Last modified: 2020/04/20 08:36 by pzhou