myWriteLines: My Write Lines

View source: R/myWriteLines.R

myWriteLinesR Documentation

My Write Lines

Description

Write a list of vectors to an output file. Each line is one element of list.

Usage

myWriteLines(file_v, data_lsv, sep_v = " ")

Arguments

file_v

path to file

data_lsv

list of vectors

sep_v

Character vector used to separate elements of a vector. If NULL, each element of each vector will have its own line

Value

no output to stdout, just writes to file.

Examples

testOut_lsv <- list(rep(0, 5), LETTERS[1:10], "This is a test")
myWriteLines("~/Desktop/multiLineTest.txt", testOut_lsv, sep = NULL)
myWriteLines("~/Desktop/singleLineTest.txt", testOut_lsv)

weshorton/wrh.rUtils documentation built on Oct. 28, 2024, 7:24 a.m.