Learn R Programming

dexter (version 0.8.5)

get_design: 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(db, format = c("long", "wide"), rows = c("booklet_id",
  "item_id", "item_position"), columns = c("item_id", "booklet_id",
  "item_position"), fill = NA)

Arguments

db

A handle to the database, i.e. the output of start_new_project or open_project

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 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