as_tbl_obs: tibble class for observations

View source: R/observations.R

print.tbl_obsR Documentation

tibble class for observations

Description

A class for tibbles with observations providing a compact output

Usage

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

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

as_tbl_obs(x)

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

## S3 method for class 'data.frame'
as_tbl_obs(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/bayr documentation built on March 23, 2024, 7:49 p.m.