# NOT RUN {
# initial situation
ex <- example_c14_date_list
class(ex$c14age)
# modify variable/column type
ex$c14age <- as.character(ex$c14age)
class(ex$c14age)
# fix type with enforce_types()
ex <- enforce_types(ex)
class(ex$c14age)
# }
Run the code above in your browser using DataLab