df2str | R Documentation |
Prints a data frame (partially if too big) into a string.
df2str(x, rowCut = 5, colCut = 5)
x |
The data frame object. |
rowCut |
The maximum of rows to print. |
colCut |
The maximum of columns to print. |
A string containing the data frame representation (or part of it).
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.