Usage
read.file(file, header = T, na.strings = c("NA", "", ".", "na", "-"),
comment.char = "#", filetype = c("default", "csv", "txt", "rdata"), ...)
Arguments
file
character:
The name of the file which the data are to be read from.
This may also be a complete URL or a path to a compressed file.
If it does not contain an absolute path, the file name is
relative to the current working directory,
header
logical;
For .txt
and .csv
files, this indicates whether the first line of the file includes variables names.
na.strings
character: strings that indicate missing data.
comment.char
character: a character vector of length one containing a single character or an empty string. Use "" to turn
off the interpretation of comments altogether.
filetype
one of "default"
, "csv"
, "txt"
, or "rdata"
indicating the type of file being loaded. The default is to use the filename
to guess the type of file.