writeCSVorExcel: Write CSV or Excel

View source: R/writeCSVorExcel.R

writeCSVorExcelR Documentation

Write CSV or Excel

Description

Will write out object according to file_v's extension

Usage

writeCSVorExcel(obj, file_v, quote_v = F, rowNames_v = F)

Arguments

obj

either a data.table, data.frame, or matrix, or a list of one of those

file_v

path to file to write out. Can be either .csv or .xlsx

quote_v

logical. passed to quote argument of write.csv

rowNames_v

logical. passed to row.names argument of write.csv

Details

Will write .csv or .xlsx depending on the extension found in file_v Currently can only write a single table to csv. Additional functionality Would be to write a list of tables to a directory of csv's instead of an excel file.

Value

write out file.


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