tests/xport.R

library(foreign)
lookup.xport("Alfalfa.xpt")
Alfalfa <- read.xport("Alfalfa.xpt", stringsAsFactors = TRUE)
summary(Alfalfa)
## test data provided by FRohde@birchdavis.com
lookup.xport("test.xpt")
testdata <- read.xport("test.xpt")
summary(testdata)
q()

Try the foreign package in your browser

Any scripts or data that you put into this service are public.

foreign documentation built on June 26, 2024, 9:06 a.m.