Closed elfunesto closed 2 years ago
Currently in annex 10, we specify columns and coltypes and use it in read_xls, but we as soon as the template change, we break the fucntion. It would be better to use something like
data_xls <- data_xls %>% mutate(across(any_of(columns[col_types=="numeric"]),~as.numeric(.x))
... Since any_of is more flexible
this can be used for other annexes
Currently in annex 10, we specify columns and coltypes and use it in read_xls, but we as soon as the template change, we break the fucntion. It would be better to use something like
... Since any_of is more flexible