write_spec: Write a survey specification file

View source: R/write_spec.R

write_specR 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.


tmelliott/surveyspec documentation built on Dec. 1, 2022, 10 p.m.