# NOT RUN {
data(Paivio)
# 2 lists, no selection on any variables
pickList(Paivio, nlists=2)
# define ranges for low and high on imagery, concreteness, meaningfulness
(low <- as.data.frame(apply(Paivio[,3:5], 2, fivenum))[c(1,3),])
(high <- as.data.frame(apply(Paivio[,3:5], 2, fivenum))[c(3,5),])
# select two lists of 10 low/high imagery items
lowI <- pickList(Paivio, low[,"imagery", drop=FALSE], nitems=10, nl=2)
highI <- pickList(Paivio, high[,"imagery", drop=FALSE], nitems=10, nl=2)
#compare means
colMeans(lowI[,c(4:8)])
colMeans(highI[,c(4:8)])
# using a list of ranges
L <- list(imagery=c(1,5), concreteness=c(1,4))
pickList(Paivio, L)
# }
Run the code above in your browser using DataLab