df2str: Convert a data.frame into a string.

View source: R/fcts_biodb.R

df2strR 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)


pkrog/biodb documentation built on Nov. 29, 2022, 4:24 a.m.