read_data
is for loading data, formats like csv, txt,data and so on.
read_data(
path,
pattern = NULL,
encoding = "unknown",
header = TRUE,
sep = "auto",
stringsAsFactors = FALSE,
select = NULL,
drop = NULL,
nrows = Inf
)check_data_format(path)
Path to file or file name in working directory & path to file.
An optional regular expression. Only file names which match the regular expression will be returned.
Default is "unknown". Other possible options are "UTF-8" and "Latin-1".
Does the first data line contain column names?
The separator between columns.
Logical. Convert all character columns to factors?
A vector of column names or numbers to keep, drop the rest.
A vector of column names or numbers to drop, keep the rest.
The maximum number of rows to read.