new_partial

0th

Percentile

Partial type

Use new_partial() when constructing a new partial type subclass; and use is_partial() to test if an type is partial. All subclasses need to provide a vec_type_finalise() method.

Keywords
internal
Usage
new_partial(..., class = character())

is_partial(x)

vec_type_finalise(x)

Arguments
...

Attributes of the partial type

class

Name of subclass.

Details

As the name suggests, a partial type partially specifies a type, and it must be combined with data to yield a full type. A useful example of a partial type is partial_frame(), which makes it possible to specify the type of just a few columns in a data frame. Use this constructor if you're making your own partial type.

Aliases
  • new_partial
  • is_partial
  • vec_type_finalise
Documentation reproduced from package vctrs, version 0.1.0, License: GPL-3

Community examples

Looks like there are no examples yet.