as.varietal {provenance} | R Documentation |
create a varietal
object
Description
Convert an object of class matrix
or data.frame
to an
object of class varietal
Usage
as.varietal(x, snames = NULL, method = "KS")
Arguments
x |
an object of class |
snames |
either a vector of sample names, an integer marking
the length of the sample name prefix, or |
method |
either |
Value
an object of class varietal
Examples
fn <- system.file("SNSM/Ttn_chem.csv",package="provenance")
ap1 <- read.csv(fn)
ap2 <- as.varietal(x=ap1,snames=3)
[Package provenance version 4.3 Index]