check_column_type.Rd
This is a helper function for data checks. It checks if a vector is of the desired type.
check_column_type(column, type)
Vector.
Character. One of integer, numeric or character.
integer
numeric
character
TRUE if the vector is of specified type.
check_column_type(1:5, "integer") #> [1] TRUE check_column_type(paste0("test", 1:5), "character") #> [1] TRUE check_column_type(c(1:4, "notanumber"), "numeric") #> [1] FALSE