write_spec {surveyspec}R Documentation

Write a survey specification file

Description

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

Usage

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

## Default S3 method:
write_spec(x, file, data_path, ...)

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

## S3 method for class '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.


[Package surveyspec version 0.1.1 Index]