sp_writeTable: Write dataframe to file with names of first column filled.

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

Write dataframe to file with names of first column filled.

Usage

1
sp_writeTable(df, file = "", keep_rownames = T, col.names = T)

Arguments

df

A dataframe

file

Filename

keep_rownames

Default TRUE meaning output rownames as the first column with column name is ID. If FALSE, ignore rownames.

col.names

either a logical value indicating whether the column names of x are to be written along with x, or a character vector of column names to be written. See the section on ‘CSV files’ for the meaning of col.names = NA.

Value

NA

Examples

1
2
# Not run
sp_writeTable(df, "a.txt")

Tong-Chen/YSX documentation built on Jan. 25, 2021, 2:49 a.m.