tags_types {linelist} | R Documentation |
List acceptable variable types for tags
Description
This function returns a named list providing the acceptable data types for the default tags. If no argument is provided, it returns default values. Otherwise, provided values will be used to define the defaults.
Usage
tags_types(..., allow_extra = FALSE)
Arguments
... |
< |
allow_extra |
a |
Value
A named list
.
See Also
-
tags_defaults()
for the default tags -
validate_types()
usestags_types()
for validating tags -
validate_linelist()
usestags_types()
for validating tags
Examples
# list default values
tags_types()
# change existing values
tags_types(date_onset = "Date") # impose a Date class
# add new types e.g. to allow genetic sequences using ape's format
tags_types(sequence = "DNAbin", allow_extra = TRUE)