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).
See also
Other file functions:
identify_blank_line_neighbors(),
normalize_hashtags(),
normalize_names(),
remove_blank_line_dups(),
replace_in_file(),
sort_files_by_size(),
split_file(),
split_files_by_size(),
zip_files_by_pattern()