Reading and writing |
|
---|---|
Read and write Stata DTA files |
|
Read and write SAS files |
|
Read and write SPSS files |
|
Read and write SAS transport files |
|
Labelled vectorsSAS, SPSS, and Stata share a simply concept of “labelled” vectors, which are similar to factors but a little more general. The |
|
Labelled vectors for SPSS |
|
Create a labelled vector. |
|
Print the labels of a labelled vector |
|
|
Convert input to a factor. |
Tagged missing valuesBoth SAS and Stata supported tagged missing values, where a missing value can have multiple “types”, given by an letter from A through Z. |
|
|
"Tagged" missing values |
Remove attributesThere are a number of SPSS/SAS/Stata features that have no direct equivalent in R. Haven preserves them so you can choose what do with them. To simply eliminate them, use one of the zap functions. |
|
Convert empty strings into missing values |
|
Remove format attributes |
|
Zap variable labels |
|
Zap value labels |
|
Zap special missings to regular R missings |
|
Remove display width attributes |