Learn R Programming

handcodeR (version 0.1.2)

data_for_app: data_for_app: Prepare inputs for Shiny-App

Description

`data_for_app` is an internal function to `handcode`. It takes the inputs data, start, randomize and context to generate a list of inputs which can then be passed to `handcoder_app`.

Usage

data_for_app(data, start, randomize, context, pre = NULL, post = NULL)

Value

The function returns a list of inputs needed within the Shiny-App.

Arguments

data

A data frame that has been prepared by `character_to_data` or that has previously already been returned from `handcode`.

start

The value that has been given as start value to `handcode`.

randomize

The logical value that has been given as randomize to `handcode`.

context

The logical value that has been given as context to `handcode`.

pre

Optional vector of texts that come before each respective text to be coded.

post

Optional vector of texts that come after each respective text to be coded.