Learn R Programming

BBmisc (version 1.13)

printStrToChar: Print str(x) of an object to a string / character vector.

Description

Print str(x) of an object to a string / character vector.

Usage

printStrToChar(x, collapse = "\n")

Value

[character].

Arguments

x

[any]
Object to print

collapse

[character(1)]
Used to collapse multiple lines. NULL means no collapsing, vector is returned. Default is “\n”.

Examples

Run this code
printStrToChar(iris)

Run the code above in your browser using DataLab