write.por | R Documentation |
Function to write an SPSS por file. Returns an por file that read.por can read as well as SPSS can. Other packages as foreign, memisc and haven might fail (fail reading or return wrong values).
write.por(
dat,
filepath,
label,
add.rownames = FALSE,
convert.factors = TRUE,
toEncoding = "CP1252",
convert.dates = TRUE,
tz = "GMT"
)
dat |
data.frame a data.frame to export as por-file. |
filepath |
string full path where and how this file should be stored |
label |
character vector of labels. must be of size |
add.rownames |
logical If |
convert.factors |
logical If |
toEncoding |
character encoding used for the por file. SPSS itself claims to have problems with unicode and por files, so "CP1252" is the default. |
convert.dates |
logical should dates be converted to SPSS format |
tz |
character The name of the timezone convert.dates will use. |
Strings longer than 255 chars are not provided. File will be stored using "CP1252" encoding.
write.por
returns nothing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.