### Subsetting (here, picking out case(s) that falls in a particular score range
### and printing out their values
### In this example, we convert a score into a z-score, and then pick out cases with
### A z-score value between 1.59 and 1.60
#Creating z-scores, this comes from the psych package. 

Wk04$zopinion<-scale(Wk04$opinion, center=TRUE, scale=TRUE)

Wk04_subset<-subset(Wk04, zopinion > 1.59 & zopinion < 1.60)
Wk04_subset
##     ï..const  id opinion zopinion
## 127 1 127 13.1 1.59608