Description Usage Arguments Value Examples
Read in data
1 2 3 4 5 6 7 8 9 10 |
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,
Alternatively,
|
sep |
the field separator character. Values on each line of the
file are separated by this character. If |
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 |
header |
a logical value indicating whether the file contains the
names of the variables as its first line. If missing, the value is
determined from the file format: |
quote |
the set of quoting characters. To disable quoting
altogether, use |
check.names |
logical. If |
renameDuplicateRowNames |
If TRUE, the function will transfer first column as row names (with duplicates numbered) |
data.frame
1 2 | # Not run
sp_readTable("a.txt")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.