field_types_advanced {daiquiri}R 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

[Package daiquiri version 1.2.0 Index]