sotrunc: Truncate the Output of Dataframes, Matrices and Lists

Description Usage Arguments Value Note Examples

View source: R/sotrunc.R

Description

A dispaly printing function that trunates data.frame/matrix by adding ellipsis ... to take the place of non-displayed columns and rows.

sotrunc.matrix - matrix method for sotrunc

sotrunc.data.frame - data.frame method for sotrunc

sotrunc.list - list method for sotrunc

sotrunc.default - Default method for sotrunc

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
sotrunc(x, ncol = 10, nrow = 15, ...)

## S3 method for class 'matrix'
sotrunc(x, ncol = 10, nrow = 15, ...)

## S3 method for class 'data.frame'
sotrunc(x, ncol = 10, nrow = 15, ...)

## S3 method for class 'list'
sotrunc(x, ncol = 10, nrow = 15, ...)

## Default S3 method:
sotrunc(x, ncol = 10, nrow = 15, ...)

Arguments

x

An R object (usually a data.frame, matrix, or a list that contains >= 1 data.frame/matrix.

ncol

The number of columns (including 3 columns displayed as ellipsis) to display.

nrow

The number of rows (including 3 rows displayed as ellipsis) to display.

...

Other arguments passed to sotrunc.

Value

Prints a truncated display of the input.

Note

This function is intended for truncated display. Please do not use to gernarate your SSCCE (Short, Self Contained, Correct (Compilable), Example).

Examples

1
2
3
4
5
6
7

sebastian-c/overflow documentation built on May 29, 2019, 4:56 p.m.