Rdocumentation
powered by
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
Link to current version
Version
Version
0.8-91
0.8-90
0.8-89
0.8-88
0.8-87
0.8-86
0.8-85
0.8-84
0.8-83
0.8-82
0.8-81
0.8-80
0.8-79
0.8-78
0.8-76
0.8-75
0.8-74
0.8-73
0.8-72
0.8-71
0.8-70
0.8-69
0.8-68
0.8-67
0.8-66
0.8-65
0.8-64
0.8-63
0.8-62
0.8-61
0.8-60
0.8-59
0.8-58
0.8-57
0.8-56
0.8-55
0.8-54
0.8-53
0.8-52
0.8-51
0.8-50
0.8-49
0.8-48
0.8-47
0.8-46
0.8-45
0.8-44
0.8-42
0.8-41
0.8-40
0.8-39
0.8-38
0.8-37
0.8-36
0.8-35
0.8-34
0.8-33
0.8-32
0.8-31
0.8-30
0.8-29
0.8-28
0.8-27
0.8-26
0.8-25
0.8-24
0.8-23
0.8-22
0.8-21
0.8-20
0.8-19
0.8-18
0.8-17
0.8-16
0.8-15
0.8-14
0.8-13
0.8-12
0.8-11
0.8-10
0.8-9
0.8-8
0.8-7
0.8-6
0.8-5
0.8-4
0.8-3
0.8-2
0.8-1
0.8-0
0.7
0.6-11
0.6-10
0.6-9
0.6-8
0.6-6
0.6-3
0.6-2
0.6-1
0.5-13
0.5-12
0.5-11
0.5-10
0.5-9
0.5-8
0.5-7
0.5-6
0.5-5
0.5-4
0.5-3
0.5-2
0.4-9
0.4-8
0.4-7
0.4-6
0.4-5
0.4-3
0.2-8
0.2-5
0.1-3
0.1-2
0.1-1
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)
Search all functions
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