Learn R Programming

tablet (version 0.6.8)

observations.data.frame: Identify Observations for Data Frame

Description

Identifies observations. Stacks values by level, supplying defaults as necessary.

Usage

# S3 method for data.frame
observations(x, ..., exclude_name = NULL)

Value

class 'observations' arranged by groups (presented first):

_tablet_N

number of records

_tablet_n

number of records in group

_tablet_name

observation identifier

_tablet_level

factor level (or special value 'numeric' for numerics)

_tablet_value

numeric value (or special value 1 for factors)

Arguments

x

data.frame

...

passed to categoricals(), numerics()

exclude_name

whether to drop NA levels of name; passed to gather