write_blocks {gcplyr} | R Documentation |
Write block designs to csv
Description
This function writes block-shaped lists (as created by
read_blocks or make_design) to csv files, including
both data
and metadata
in a variety of output formats
Usage
write_blocks(
blocks,
file,
output_format = "multiple",
block_name_location = NULL,
block_name_header = "block_name",
paste_sep = "_",
filename_sep = "_",
na = "",
dir = NULL,
...
)
Arguments
blocks |
list of block-shaped data to be written to file |
file |
A file name is required when A file name can be specified when File names can be specified when |
output_format |
One of "single", "pasted", "multiple". "single" will write all blocks into a single csv file, with an empty row between successive blocks. "pasted" will paste all blocks together using a
"multiple" will write each block to its own csv file. |
block_name_location |
Either If If 'filename', the If 'file', the |
block_name_header |
The name of the field containing the
|
paste_sep |
When |
filename_sep |
What character will be used to paste together filenames when block_name_location = 'filename'. |
na |
The string to use for missing values in the data. |
dir |
The directory that file(s) will be written into. When
|
... |
Other arguments passed to write.table |
Value
Nothing, but R objects are written to files