Passer au contenu

Harmonizes the types of columns in a dataframe according to a type mapping.

Utilisation

harmonize_column_types(
  df,
  types_map = NULL,
  dictionary_path = system.file("extdata", "star_dictionary.csv", package = "startbox")
)

Arguments

df

The dataframe to harmonize.

types_map

(optional) predefined type mapping (otherwise it will load from a CSV).

dictionary_path

(optional) path to the CSV dictionary file if types_map is not provided.

Valeur de retour

A dataframe with harmonized column types.