Write data contained within an R object as character output to a file.

Description

Tries to write the supplied data object as character output to a file. Supports the following data objects: matrix, numerical and character. Will also write the contents of a list object to a file if it only contains objects of the supported types.

Usage

1

Arguments

filename

the filename of the text file the data needs to be written to.

data

the data object which needs to be written as character output to the file. Supports matrix, numerical and character objects. Also supports writing the complete contents of a list object to a single file, if the list only contains supported data object types.

Value

A single text file containing a character representation of the data object.

Author(s)

Tim Dorscheidt

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.