Reads a file in table format and creates a data frame from it, with cases corresponding to lines and variables to fields in the file.
read.csv( file, cache = FALSE, na.strings = "", stringsAsFactors = FALSE, encoding = "UTF-8", ... )
the name of the file which the data are to be read from. Each row of the table appears as one line of the file. If it does not contain an absolute path, the file name is relative to the current working directory, getwd(). Tilde-expansion is performed where supported. This can be a compressed file.
logical. Memory caching? Default
a character vector of strings which are to be interpreted as
logical: should character vectors be converted to factors?
encoding to be assumed for input strings. It is used to mark character strings as known to be in Latin-1 or UTF-8: it is not used to re-encode the input, but allows R to handle encoded strings in their native encoding.
arguments passed to
return value of