field_types {daiquiri}R Documentation

Create field_types specification

Description

Specify the names and types of fields in the source data frame. This is important because the data in each field will be aggregated in different ways, depending on its field_type. See field_types_available

Usage

field_types(...)

Arguments

...

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

Value

A field_types object

See Also

field_types_available(), template_field_types()

Examples

fts <- field_types(
  PatientID = ft_uniqueidentifier(),
  TestID = ft_ignore(),
  TestDate = ft_timepoint(),
  TestName = ft_categorical(aggregate_by_each_category = FALSE),
  TestResult = ft_numeric(),
  ResultDate = ft_datetime(),
  ResultComment = ft_freetext(),
  Location = ft_categorical()
)

fts

[Package daiquiri version 1.1.1 Index]