remove_ind: Remove individuals

Description Usage Arguments Value Examples

View source: R/remove_ind.R

Description

Remove individuals

Usage

1
remove_ind(data_obj, ind_to_remove = NULL, names_to_remove = NULL)

Arguments

data_obj

a Cape object

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.

Value

an updated cape data object with specified individuals removed.

Examples

1
2
3
4
5
6
7
## 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)

cape documentation built on Feb. 10, 2021, 5:06 p.m.