With the following data set
set.seed(1) mydf=data.frame(slno=c(1:5), x1=rnorm(5),x2=rnorm(5)) > mydf slno x1 x2 1 1 -0.6264538 -0.8204684