write_survey: Write a Survey

Description Usage Arguments Details Author(s) Examples

View source: R/io.R

Description

In contrast to write_data, write_survey will store hidden fields (such as config, translations etc.) which can be retrieved by using read_survey. This means that you don't have to repeatedly set these options when reading/writing a survey you are working on. Information that cannot be stored in SPSS will be stored in an associated .Rdata file instead.

Usage

1

Arguments

x

A Survey.

file

Output file or directory. (If a directory is specified, PLS-input will be created. The resulting EM.sav file-name is based on the Survey's config.)

Details

You can also use write_data to write the Survey. In this case the information which is persisted depends on the format used:

Author(s)

Kristian D. Olsen

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
df <- survey_df(data.frame("A" = "test", "B" = 2))

# Store data and labels
seamless::write_data(df, "test.sav")

# Store everything
seamless::write_data(df, "test.Rdata")

# Write survey as .sav (hidden fields stored as .Rdata)
write_survey(df, "test.sav")

## End(Not run)

itsdalmo/reporttoolDT documentation built on May 18, 2019, 7:11 a.m.