| save_labels | R Documentation |
Saves the attributes and levels (and their order) from a projoint_data
object, as generated by reshape_projoint, to a CSV file. This
enables manual reordering and later re-import via read_labels.
save_labels(.data, .filename)
.data |
A |
.filename |
A character string giving the name of a CSV file to be written. |
No return value, called for side effects (writes a CSV file).
read_labels, reshape_projoint
library(projoint)
data(exampleData1)
reshaped <- reshape_projoint(
exampleData1,
.outcomes = c(paste0("choice", 1:8), "choice1_repeated_flipped")
)
tmpfile <- tempfile(fileext = ".csv")
save_labels(reshaped, tmpfile)
readLines(tmpfile, n = 5) # show first few lines
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.