Description Usage Arguments Details Author(s) Examples
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.
1 | write_survey(x, file)
|
x |
A |
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.) |
You can also use write_data
to write the Survey
.
In this case the information which is persisted depends on the format used:
.sav
: Data including labels, and levels for factor variables.
.xlsx
: Data, measurement model (labels and levels) and entities.
.Rdata
: Everything is stored.
Kristian D. Olsen
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.