# NOT RUN {
## Get information about a local file
alfFile <- system.file('extdata', 'Alfalfa.xpt', package='SASxport')
lookup.xport(alfFile)
## Read a copy of test2.xpt available on the web:
# }
# NOT RUN {
url <- 'http://biostat.mc.vanderbilt.edu/wiki/pub/Main/Hmisc/test2.xpt'
w <- lookup.xport(url)
# }
# NOT RUN {
## Or use the local copy...
testFile <- system.file('extdata', 'test2.xpt', package="SASxport")
w <- lookup.xport(testFile)
# display the information (calls 'print.lookup.xport')
w
# names of data sets
names(w)
# names of variables within data sets
w$Z$name
# use summary
wS <- summary(w)
wS # same display
# variable names within all data sets
wS$name
# }
Run the code above in your browser using DataLab