{
# use madshapR_examples provided by the package
dataset <- madshapR_examples$`dataset_example`
as_valueType(head(dataset$dob),'date')
# as_valueType is compatible with tidyverse syntax
library(dplyr)
dataset <-
tibble(mtcars) %>%
mutate(cyl = as_valueType(cyl,'integer'))
head(dataset)
}
Run the code above in your browser using DataLab