partial_frame: Partially specify columns of a data frame

Description Usage Arguments Examples

View source: R/partial-frame.R

Description

This special class can be passed to .ptype in order to specify the types of only some of the columns in a data frame.

Usage

1

Arguments

...

Attributes of subclass

Examples

1
2
3
4
5
6
7
8
pf <- partial_frame(x = double())
pf

vec_rbind(
  data.frame(x = 1L, y = "a"),
  data.frame(x = FALSE, z = 10),
  .ptype = partial_frame(x = double(), a = character())
)

vctrs documentation built on Jan. 25, 2020, 1:06 a.m.