This function reads a single CSV file in table format and returns a data frame from it, with cases corresponding to lines and variables to fields in the file. It supports reading of files which are seperated with a comma or semi-colon.

read_sheet(file, ...)

Arguments

file

Either a path to a file, a connection, or literal data (either a single string or a raw vector). Files ending in .gz, .bz2, .xz, or .zip will be automatically uncompressed. Files starting with http://, https://, ftp://, or ftps:// will be automatically downloaded. Remote gz files can also be automatically downloaded and decompressed. Literal data is most useful for examples and tests. It must contain at least one new line to be recognised as data (instead of a path) or be a vector of greater than length Using a value of clipboard() will read from the system clipboard.

...

Additional arguments.

Value

A tibble(). If there are parsing problems, a warning tells you how many, and you can retrieve the details with problems().

Details

read_sheet is used in the load_files to load multiple files, you can also use it indepently to load a single file. It wraps and uses the read_csv and read_csv2 under the hood to load files.

See also

read_csv and read_csv2 functions from readr.