Description Usage Arguments Value Examples
If the file extension is csv,
then use read.csv
, otherwise use read.table
.
1 2 3 |
file |
The 1st row is column names, the 1st column is row names. |
sep |
Only used for non csv file. Default to tab "\t". |
header |
A logical value indicating whether the file contains the names of the variables as its first line. Default to TRUE. |
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 row.names is NULL, the rows are numbered. Default to 1. Using row.names = NULL forces row numbering. |
verbose |
More details. Default to TRUE. |
msg.file, msg.col, msg.row |
The message regarding file, column and row, if verbose=TRUE. |
... |
Other arguments passed to |
A data frame from the file, such as
OTU_id | plot01 | plot02 | ... |
OTU_1 | 1 | 0 | ... |
OTU_2 | 100 | 200 | ... |
OTU_3 | 56 | 3 | ... |
1 2 3 4 | community.matrix <- readFile("16S.txt", msg.file="16S OTU table", msg.col="samples", msg.row="OTUs")
taxa.table <- readFile("16S_taxonomy_table.txt", msg.file="16S taxonomy table", msg.row="OTUs")
env <- readFile("env_data.txt", msg.file="enviornmental data", msg.row="samples")
taxa.phyla <- readFile("taxonomy97phyla.txt", row.names=NULL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.