tbl_ptype: Return a prototype of a tbl

View source: R/colwise.R

tbl_ptypeR Documentation

Return a prototype of a tbl

Description

Used in ⁠_if⁠ functions to enable type-based selection even when the data is lazily generated. Should either return the complete tibble, or if that can not be computed quickly, a 0-row tibble where the columns are of the correct type.

Usage

tbl_ptype(.data)

hadley/dplyr documentation built on Nov. 6, 2024, 4:48 p.m.