Random sampling of dataset
sample_data(
input.data,
n = NULL,
percentage = NULL,
type = c("individual", "marker"),
selected.ind = NULL,
selected.mrk = NULL
)
an object of class mappoly.data
an object of class mappoly.data
number of individuals or markers to be sampled
if n == NULL
, the percentage of individuals or markers to be sampled
should sample individuals or markers?
a vector containing the name of the individuals to select. Only has effect
if type = "individual"
, n = NULL
and percentage = NULL
a vector containing the name of the markers to select. Only has effect
if type = "marker"
, n = NULL
and percentage = NULL