remove_ind | R Documentation |
Remove individuals
remove_ind(data_obj, ind_to_remove = NULL, names_to_remove = NULL)
data_obj |
a |
ind_to_remove |
Indices of individuals to remove |
names_to_remove |
Names of individuals to remove Only one of ind_to_remove or names_to_remove should be specified. |
an updated cape data object with specified individuals removed.
## Not run:
#remove males
covar_info <- get_covar(data_obj)
male_idx <- which(covar_info$covar_table[,"sex"] == 1)
data_obj <- remove_ind(data_obj, ind_to_remove = male_idx)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.