Skip to contents

A list of default transformations to apply to the association file columns after importing it via import_association_file()

Usage

default_af_transform(convert_tp)

Arguments

convert_tp

The value of the argument convert_tp in the call to import_association_file()

Value

A named list of lambdas

See also

Examples

default_af_transform(TRUE)
#> $TimepointMonths
#> ~dplyr::if_else(is.na(.x), NA_character_, stringr::str_pad(as.character(.x), 
#>     pad = "0", side = "left", width = max(nchar(as.character(.x[!is.na(.x)])), 
#>         na.rm = TRUE) + 1))
#> <environment: 0x5575e69a5b38>
#> 
#> $TimepointYears
#> ~dplyr::if_else(is.na(.x), NA_character_, stringr::str_pad(as.character(.x), 
#>     pad = "0", side = "left", width = max(nchar(as.character(.x[!is.na(.x)])), 
#>         na.rm = TRUE) + 1))
#> <environment: 0x5575e69a5b38>
#>