peek_csv_file() reads a CSV file and provides a summary of its contents,
including the number of columns, rows, and cells. It is useful for quickly
inspecting the structure of a CSV file without loading the entire dataset
into memory.
Arguments
- file
A string specifying the path to the file.
- delim
A string specifying the delimiter used in the file (default:
",").- skip
An
integerspecifying the number of lines to skip before reading the file (default:0).- has_header
A
logicalflag indicating whether the file has a header row. IfTRUE, the first row is treated as column names (default:TRUE).