Learn R Programming

childsds (version 0.6)

select_fams: select families

Description

Select groups (families)

Usage

select_fams(data, prop = 0.75, group)

Arguments

data
dataframe as returned by prepare data
prop
proportion of families to be sampled
group
name of the group variable (character) if not "group", ignored

Value

dataframe containing only prop.fam percent the families in data

Details

function selects a given proportion of groups/families from the data if no grouping variable is given the original data set is returned function is called inside do_iterations and may not called directly