read.autodelim | R Documentation |
Delegates to read.delim
where the separator is inferred from the file extension (CSV or TXT).
For CSV files the delimiter is set to ","
while for TXT file "\t"
is used. Also sets
some default argument values as used by Core Hunter.
read.autodelim(
file,
quote = "'\"",
row.names = 1,
na.strings = "",
check.names = FALSE,
strip.white = TRUE,
stringsAsFactors = FALSE,
...
)
file |
File path. |
quote |
the set of quoting characters. To disable quoting
altogether, use |
row.names |
a vector of row names. This can be a vector giving the actual row names, or a single number giving the column of the table which contains the row names, or character string giving the name of the table column containing the row names. If there is a header and the first row contains one fewer field than
the number of columns, the first column in the input is used for the
row names. Otherwise if Using |
na.strings |
a character vector of strings which are to be
interpreted as |
check.names |
logical. If |
strip.white |
logical. Used only when |
stringsAsFactors |
logical: should character vectors be converted
to factors? Note that this is overridden by |
... |
Further arguments to be passed to |
Data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.