field_types_advanced: Create field_types_advanced specification

View source: R/field_types.R

field_types_advancedR Documentation

Create field_types_advanced specification

Description

Specify only a subset of the names and types of fields in the source data frame. The remaining fields will be given the same 'default' type.

Usage

field_types_advanced(..., .default_field_type = ft_simple())

Arguments

...

names and types of fields (columns) in source data.

.default_field_type

field_type to use for any remaining fields (columns) in source data. Note, this means there can not be a field in the data named .default_field_type

Value

A field_types object

See Also

field_types(), field_types_available(), template_field_types()

Examples

fts <- field_types_advanced(
  PrescriptionDate = ft_timepoint(),
  PatientID = ft_ignore(),
  .default_field_type = ft_simple()
)

fts

phuongquan/daiquiri documentation built on April 5, 2024, 10:36 a.m.