get_design {dexter}R Documentation

Test design

Description

Retrieve all items that have been entered in the db so far by booklet and position in the booklet

Usage

get_design(
  dataSrc,
  format = c("long", "wide"),
  rows = c("booklet_id", "item_id", "item_position"),
  columns = c("item_id", "booklet_id", "item_position"),
  fill = NA
)

Arguments

dataSrc

a dexter database or any object form which a design can be inferred

format

return format, see below

rows

variable that defines the rows, ignored if format='long'

columns

variable that defines the columns, ignored if format='long'

fill

If set, missing values will be replaced with this value, ignored if format='long'

Value

A data.frame with the design. The contents depend on the rows, columns and format parameters if format is 'long' a data.frame with columns: booklet_id, item_id, item_position (if available) if format is 'wide' a data.frame with the rows defined by the rows parameter and the columns by the columns parameter, with the remaining variable (i.e. item_id, booklet_id or item_position) making up the cells


[Package dexter version 1.5.0 Index]