read.csv | R Documentation |
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", ... )
file |
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. |
cache |
logical. Memory caching? Default |
na.strings |
a character vector of strings which are to be interpreted as |
stringsAsFactors |
logical: should character vectors be converted to factors? |
encoding |
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 read.csv
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.