Skip to contents

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

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
#> PatientID	<uniqueidentifier>
#> TestID	<ignore>
#> TestDate	<timepoint>	options: includes_time
#> TestName	<categorical>
#> TestResult	<numeric>
#> ResultDate	<datetime>	options: includes_time
#> ResultComment	<freetext>
#> Location	<categorical>