gather_factory: Factory to create gather functions

View source: R/gather.R

gather_factoryR Documentation

Factory to create gather functions

Description

Factory to create gather functions

Usage

gather_factory(
  default.column.name,
  default.column.empty,
  expand.fun,
  required.type
)

Arguments

default.column.name

the desired name of the default added column

default.column.empty

the value to use when the default column should be empty because the JSON has length 0

expand.fun

a function applied to the JSON that will expand the rows in the tbl_df

required.type

the json_types type that must be present in every element of the JSON for this to succeed


tidyjson documentation built on Jan. 7, 2023, 1:14 a.m.