select_meas: choose one measurement per subject

Description Usage Arguments Details Value Author(s)

View source: R/createlms.R

Description

Choose one measurement per subject

Usage

1
select_meas(data, subject = "subject", prop = 1, verbose = F)

Arguments

data

dataframe as returned by prepare data

subject

name of the column containing the subject identifier

prop

optional - proportion of measurements to sample

verbose

if TRUE information about sample size is printed out

Details

function samples one measurement per subject, if prop < 1 additional a prop*100 percent will be sampled from the measurements the function is called inside do_iterations and may not called directly

Value

dataframe containing the sampled rows

Author(s)

Mandy Vogel


mvogel78/childsds documentation built on May 23, 2019, 10:55 a.m.