An equivalent to dplyr::select_if()
that works on the genotype
column
of a gen_tibble
. This function has access to the genotypes (and thus can
work on summary statistics to select), but not the names of the loci (look
at select_loci()
for that feature.
Usage
select_loci_if(.data, .sel_logical)
Arguments
- .data
a gen_tibble
- .sel_logical
a logical vector of length equal to the number of loci,
or an expression that will tidy evaluate to such a vector. Only loci
for which .sel_logical is TRUE will be selected; NA will be treated as FALSE.
Details
#' Note that the select_loci_if
verb does not modify the backing FBM files,
but rather it subsets the list of loci to be used stored in the gen_tibble
.