Skip to contents

Writes Data with Respondents in CSV Format Required for SurveyXact Import

Usage

write_data_for_sx(data, filepath, overwrite = FALSE)

Arguments

data

Data frame (or tibble).

filepath

Filepath as string

overwrite

Whether to overwrite existing file or not (default).

Value

Side-effect: writes file. Returns filepath.

Examples

tmpfile <- tempfile(fileext = ".csv")
write_data_for_sx(mtcars, filepath=tmpfile)
#> [1] "/tmp/Rtmp5YvOhn/file1d467957ccea.csv"
unlink(tmpfile)