read.varietal | R Documentation |
Reads a data table containing compositional data (e.g. chemical concentrations) for multiple grains and multiple samples
read.varietal(
fname,
snames = NULL,
sep = ",",
dec = ".",
method = "KS",
check.names = FALSE,
row.names = 1,
...
)
fname |
file name (character string) |
snames |
either a vector of sample names, an integer marking
the length of the sample name prefix, or
|
sep |
the field separator character. Values on each line of the file are separated by this character. |
dec |
the character used in the file for decimal points. |
method |
an optional string specifying the dissimilarity
measure which should be used for comparing this with other
datasets. Should be one of either |
check.names |
logical. If |
row.names |
logical. See the documentation for the
|
... |
optional arguments to the built-in |
an object of class varietal
, i.e. a list with the
following items:
x
: a compositional data table
snames
: a vector of strings corresponding to the sample names
name
: the name of the dataset, extracted from the file path
fn <- system.file("SNSM/Ttn_chem.csv",package="provenance")
Ttn <- read.varietal(fname=fn,snames=3)
plot(MDS(Ttn))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.