write.simple.vec | R Documentation |
Writes a vector-like R object to a file as newline separated values (.vec). The output filename can be auto-generated from the variable's name or manually specified. The file is saved in the specified output directory or the current working directory. The path and variable name can be passed separately and will be concatenated to form the filename.
write.simple.vec(
input_vec,
filename = substitute(input_vec),
suffix = NULL,
extension = "vec",
manual_file_name = NULL,
manual_directory = NULL,
o = FALSE,
v = TRUE
)
input_vec |
Vector to write out. Default: None, must be provided. |
filename |
The base name for the output file. Default: Name of the input vector. |
suffix |
An optional suffix to add to the filename. Default: NULL. |
extension |
File extension to use. Default: 'vec'. |
manual_file_name |
Manually defined filename, overrides automatic naming. Default: NULL. |
manual_directory |
Directory to save the file in, overrides default directory. Default: NULL. |
o |
If TRUE, opens the file after writing on OS X using 'system(open ...)'. Default: FALSE. |
v |
verbose Print path? Default: TRUE. |
Outputs a .vec file and optionally prints the length of the input vector.
## Not run:
if (interactive()) {
write.simple.vec(input_vec = myVector)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.