Learn R Programming

observer (version 0.1.2)

observations: Get or set the 'observations' attribute

Description

The function observations (or obs for short) extracts the observations attribute from .data created by observe_if or observe_if_.

Usage

observations(.data, compressed = TRUE)
observations(x) <- value
obs(.data, compressed = TRUE)
obs(x) <- value

Arguments

.data, x
A tbl or data frame
compressed
logical. By default, the column "Rows" of observations is compressed with the as.bit function from package bit. If compressed=FALSE, this column is uncompressed (and becomes understandable / readable by the user).
value
A tibble, see observations.

Value

A tbl.

See Also

observe_if in this package.