Skip to contents

indexing dartR objects correctly...

Usage

# S4 method for dartR,ANY,ANY,ANY
[(x, i, j, ..., pop = NULL, treatOther = TRUE, quiet = TRUE, drop = FALSE)

Arguments

x

dartR object

i

index for individuals

j

index for loci

...

other parameters

pop

list of populations to be kept

treatOther

elements in other (and ind.metrics & loci.metrics) as indexed as well. default: TRUE

quiet

warnings are suppressed. default: TRUE

drop

reduced to a vector if a single individual/loci is selected. default: FALSE [should never set to TRUE]