check_ascii_file: Check the Number of Lines and Fields in a File

View source: R/csv.R

check_ascii_fileR Documentation

Check the Number of Lines and Fields in a File

Description

Check the Number of Lines and Fields in a File

Usage

check_ascii_file(path, sep = ";")

Arguments

path

Path to a file.

sep

A character separating the fields in the file.

Value

A list giving the number of lines, number of fields and an boolean indicating whether all lines have the same number of fields.

See Also

Other CSV functions: bulk_read_csv(), bulk_write_csv(), csv2csv(), csv

Examples

f <- tempfile()
write.csv2(mtcars, file = f)
check_ascii_file(f)

fritools documentation built on Nov. 19, 2023, 1:06 a.m.