metamethods: metamethods: Generalized converters for S3 methods.

Description data.frame to grouped_df Author(s)

Description

This package automatically creates S3 methods. Well, not so much creates as modifies. Given a method for one class, it will generate an appropriate method for another. This is meant to smoothline writing packages.

data.frame to grouped_df

dplyr's class grouped_df is an efficient and conveneint way to run operations on sections of data frames. Running mutate on a grouped_df will calculate on subsets of a column. However, calling a function that operates ona data frame rather than a vector is somewhat difficult without a deeper understanding of the class. This is easily bypassed by creating a separate S3 method for grouped_df.

Author(s)

Aleksander Chlebowski, Warsaw, 28 May 2019


olobiolo/metamethods documentation built on Oct. 6, 2021, 2:08 p.m.