ns_write_codebook | R Documentation |
Save codebook information to a
file for safe keeping. Depending
on the type of codebook (raw or tidy)
the file will either be stored as a
json-file through write_json
or a text table through write.table
.
ns_write_codebook(codebook, path, ...)
## Default S3 method:
ns_write_codebook(codebook, path, ...)
## S3 method for class 'ns_codebook_raw'
ns_write_codebook(codebook, path, ...)
## S3 method for class 'ns_codebook'
ns_write_codebook(codebook, path, sep = "\t", ...)
codebook |
object of class ns_codebook |
path |
filename or path |
... |
arguments to
|
sep |
character. If writing text table, column delimiter. |
Given the two types of codebooks, writes different types of files.
- writes a tab-separated table
- writes a json-file
no return value. Writes a file to path.
## Not run:
form_id <- 1100000
my_cb <- ns_get_codebook(form_id)
ns_write_codebook(my_cb, "my/path/codebook_110000.txt")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.