cycle_draw: Draw cycles for a resampled bullet sequence

Description Usage Arguments Value

View source: R/create_crosscut.R

Description

This function assembles cycles to form a sequence of approximately length 'len' using a summary table with the following information:

  1. id, a variable uniquely identifying the cycle,

  2. type, a character or factor variable with values 'boundary_indicator' and some other value indicating a complete cycle

  3. n, the length of the sequence,

  4. not_na, the number of non NA values in the sequence

Usage

1
cycle_draw(len, tab, boundary_indicator = "boundary")

Arguments

len

target sequence length

tab

summary table

boundary_indicator

character indicating an incomplete cycle

Value

a data frame of sampled responses, in order


srvanderplas/bulletsamplr documentation built on June 10, 2021, 7:55 a.m.