Writes a survey specification file for the given survey design object.

write_spec(x, file, data_path, ...)

# S3 method for default
write_spec(x, file, data_path, ...)

# S3 method for inzsvyspec
write_spec(x, file, data_path, ...)

# S3 method for survey.design
write_spec(x, file, data_path, des, ...)

Arguments

x

a survey object

file

the path of a file to write to

data_path

the location of the data, relative. Only specify if distributing both, and relative paths will remain consistent.

...

additional arguments for methods

des

a survey design object, needed for calibrated/poststratified surveys

Value

Called for side-effect of writing to a file.