Count the number of fields in each line of a fileSource:
This is useful for diagnosing problems with functions that fail to parse correctly.
Either a path to a file, a connection, or literal data (either a single string or a raw vector).
Files ending in
.zipwill be automatically uncompressed. Files starting with
ftps://will be automatically downloaded. Remote gz files can also be automatically downloaded and decompressed.
Literal data is most useful for examples and tests. To be recognised as literal data, the input must be either wrapped with
I(), be a string containing at least one new line, or be a vector containing at least one string with a new line.
Using a value of
clipboard()will read from the system clipboard.
Number of lines to skip before reading data.
Optionally, maximum number of rows to count fields for.