as_tbl_obs: tibble class for observations

Description Usage Arguments Value Author(s)

View source: R/output.R

Description

A class for tibbles with observations providing a compact output

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
as_tbl_obs(x)

## S3 method for class 'tbl_df'
as_tbl_obs(x)

## S3 method for class 'data.frame'
as_tbl_obs(x)

## S3 method for class 'tbl_obs'
print(x, ...)

## S3 method for class 'tbl_obs'
knit_print(x, ...)

Arguments

x

a data frame

Value

tbl_obs

The constructor makes any data.frame or tibble class tbl_obs. The provided print method randomly selects a small number of observations and puts it into a knitr::kable, which looks nice on both, console and knitr output.

Author(s)

Martin Schmettow


schmettow/mascutils documentation built on May 12, 2020, 11:39 a.m.