next up previous index
Siguiente: Import and Export Data Subir: Curso Introductorio de R Anterior: Data frame:   Índice de Materias


Useful Functions

Random number generator:

Function rnorm, dnorm, pnorm, qnorm. Dnorm gives the density, 'pnorm' gives the distribution function, 'qnorm' gives the quantile function, and 'rnorm' generates random deviates.

> a<-rnorm(1000, 5, 1) ## get 1000 samples from normal distribution, means 5 and
stan deviation 1.
> hist(a, nclass=30)
> pnorm(1.96)
> qnorm(0.975)

other functions:

Rnorm, runif, rt, rchisq, rexp, rweibull, rbeta, rgamma


next up previous index
Siguiente: Import and Export Data Subir: Curso Introductorio de R Anterior: Data frame:   Índice de Materias

Centro de Ciencias Genómicas/UNAM, México 2006-7