Description Usage Arguments Details Author(s) Examples
Read a Survey
that has been written by write_survey
(or
created manually using the PLS-wizard). This function also reads output from
the PLS-wizard, such as inner and outer weights. Hidden fields will be updated
to reflect changes in input-files when reading a survey directory.
1 2 | read_survey(file, mainentity = "q1", inner_weight = FALSE,
outer_weight = FALSE)
|
file |
Output file or directory. |
mainentity |
Name of the mainentity variable in data. |
inner_weight |
Optional: Read inner weights from output. |
outer_weight |
Optional: Read outer weights from output. |
If file
is a directory the following directories and files will be read:
data: A single .sav file ending with ...EM.sav
input: measurement model.txt and config.txt
output: main results.xlsx (inner weights) and score weights out.xlsx (outer weights).
Kristian D. Olsen
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
library(reporttoolDT)
lnk <- sharepoint_mount("http://domain.com/path/to/dir")
# Read the directory
srv <- read_survey(lnk, inner_weight = TRUE, outer_weight = TRUE)
# Read just the .sav and hidden fields (.Rdata).
srv <- read_survey(file.path(lnk, "Data", "Example study EM.sav"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.