Useful R Functions
From ECON 520
(Please feel free to add more!)
sin -- sine
cos -- cosine
tan -- tangent
exp -- exponential
log -- log (natural log by default)
sqrt -- square root
factorial -- factorial
choose -- binomial coefficient
gamma -- gamma function
c -- concatenate (create vector)
sum -- sum of element of vector
mean -- sample average
sd -- sample standard deviation
dunif -- uniform PDF
punif -- uniform CDF
runif -- random draws from uniform distribution
dnorm -- normal PDF
