Learn R Programming

vctrs (version 0.6.5)

partial_frame: Partially specify columns of a data frame

Description

[Experimental]

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

partial_frame(...)

Arguments

...

Attributes of subclass

Examples

Run this code
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())
)

Run the code above in your browser using DataLab