1.str function
structure of the object
2. Simulation
d for density
r for random number generation
p for cumulative distribution
q for quantile function
dnorm(x, mean = 0, sd = 1, log = FALSE)
set.seed(1)
Linear model
!set.seed(20)
x<- rnorm(100)
e<- rnorm(100,0,2)
y<-0.5+2*x+e
plot(x,y)
sample(1:10, 4)
sample(letters, 5, replace = TRUE)
system.time()