# Variables in a standard R data frame.
data(hdv2003)
# Find the names of selected variables.
describe(hdv2003, "age", "sexe", "lecture*", "frere|soeur")
# Load memisc package and example data.
require(memisc)
nes1948.por <- UnZip("anes/NES1948.ZIP","NES1948.POR", package="memisc")
nes1948 <- spss.portable.file(nes1948.por)
# Get the labels of selected variables.
describe(nes1948, "v480050", "version|set", "v48004*")
Run the code above in your browser using DataLab