Checks that the column types of the input csv matches the column types expected by epireview.
Source:R/load_epidata_raw.R
check_column_types.Rd
This function creates a vroom object (the same type created by read_csv) and checks if there are any problems with the file. If there are it will provide the offending columns and the number problematic rows (per column). A csv with the details of the issue will be written to a tmp file and the location will be provided. This function will prevent data from being loaded until all column types are correct.
Arguments
- file_path
The path to the csv file for which the column types are to be checked
- col_types
The column types expected by epireview. These are specified in the column type functions (e.g., article_column_type, parameter_column_type) and are used to read in the data.
- raw_colnames
The column names of the csv file