ncodeR Code object

ncodeR Code object

Value

Code object Create Code

Public fields

call

TBD

name

TBD

definition

TBD

codeSet

TBD

testSet

TBD

trainingSet

TBD

computerSet

TBD

ignoredSet

TBD

examples

TBD

excerpts

TBD

holdoutExcerpts

TBD

touchableExcerpts

TBD

touchedIndices

TBD

additionalExcerpts

TBD

secondRaterSet

TBD

statistics

TBD

baserate

TBD

baserateInflation

TBD

Methods

Public methods


Method new()

Usage

Code$new(
  name,
  definition,
  testSet = NULL,
  trainingSet = NULL,
  computerSet = NULL,
  secondRaterSet = NULL,
  ignoredSet = c(),
  examples = NULL,
  excerpts = NULL,
  holdoutSize = 0.9,
  ...
)

Arguments

name

TBD

definition

TBD

testSet

TBD

trainingSet

TBD

computerSet

TBD

secondRaterSet

TBD

ignoredSet

TBD

examples

TBD

excerpts

TBD

holdoutSize

TBD

...

TBD

Returns

Code object Function to override


Method process()

Usage

Code$process()

Returns

Default, error, unless overridden Kappa on Code


Method kappa()

Usage

Code$kappa(which = c("training", "test"))

Arguments

which

TBD

Returns

double Differences in sets


Method differences()

Usage

Code$differences(data = NULL, col1 = NULL, col2 = NULL, cols = NULL)

Arguments

data

TBD

col1

TBD

col2

TBD

cols

TBD

Returns

vector of indices Clear TestSet


Method clearTestSet()

Usage

Code$clearTestSet()

Returns

NULL Concatenate Expressions


Method concat()

Usage

Code$concat()

Returns

character of concatenated expressions Get Value


Method getValue()

Usage

Code$getValue(wh)

Arguments

wh

character

Returns

value stored at wh Set Value


Method setValue()

Usage

Code$setValue(wh, val)

Arguments

wh

character

val

object


Method clone()

The objects of this class are cloneable with this method.

Usage

Code$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.