df2str {biodb} | R Documentation

## Convert a data.frame into a string.

### Description

Prints a data frame (partially if too big) into a string.

### Usage

    df2str(x, rowCut = 5, colCut = 5)

### Arguments

`x` | The data frame object.
`rowCut` | The maximum of rows to print.
`colCut` | The maximum of columns to print.

### Value

A string containing the data frame representation (or part of it).

### Examples

    # Converts the first 5 rows and first 6 columns of a data frame into a
    # string:
    x <- data.frame(matrix(1:160, nrow=10, byrow=TRUE))
    s <- df2str(x, rowCut=5, colCut=6)

[Package biodb version 1.2.2 Index]