write.csv {utils} R Documentation

Data Output

Description


prints its required argument x (after converting it to a
data frame if it is not one nor a matrix) to a file or
connection.

Usage

write.csv(x,
    file = NULL,
    row.names = TRUE,
    fileEncoding = "",
    tsv = FALSE,
    number.format = NULL,
    meta.blank = "");

Arguments

x

the object to be written, preferably a matrix or data frame. If not, it is attempted to coerce x to a data frame.

file

either a character string naming a file or a connection open for writing. "" indicates output to the console.

fileEncoding

character string: if non-empty declares the encoding to be used on a file (not a connection) so the character data can be re-encoded as they are written.

env

[as Environment]

row.names

either a logical value indicating whether the row names of x are to be written along with x, or a character vector of row names to be written.

meta.blank

set the cell value for represents the missing value of the metadata column when do save of the clr object array. [as string]

Details

this function will create an empty table file if the given data table object `x` is nothing.

Authors

SMRUCC genomics

Value

this function returns data object of type boolean.

clr value class

Examples


[Package utils version 6.0.0.3654 Index]