Learn R Programming

insurancerating (version 0.8.2)

$.rating_table: Backward-compatible access to rating-table contents

Description

A rating_table is a data frame. This method keeps the historical x$df accessor available while allowing ordinary $ access to table columns. Package metadata is returned only when the requested name is not a column.

Usage

# S3 method for rating_table
$(x, name)

Value

A table column, the underlying data frame for name = "df", or a stored metadata component.

Arguments

x

A rating_table object.

name

Column or legacy component name.