Learn R Programming

⚠️There's a newer version (0.8-91) of this package.Take me there.

foreign (version 0.4-3)

Read data stored by Minitab, S, SAS, SPSS, Stata, ...

Description

Functions for reading and writing data stored by statistical packages such as Minitab, S, SAS, SPSS, Stata, ...

Copy Link

Version

Install

install.packages('foreign')

Monthly Downloads

60,085

Version

0.4-3

License

GPL version 2 or later

Maintainer

Saikat DebRoy

Last Published

January 29th, 2026

Functions in foreign (0.4-3)

read.mtp

Read a Minitab Portable Worksheet
read.spss

Read an SPSS data file
write.dta

Write files in Stata binary format
read.dta

Read Stata binary files
S3 read functions

Read an S3 Binary File
read.xport

Read a SAS XPORT format library
lookup.xport

Lookup information on a SAS XPORT format library