dp_prepare_data_table: function for preparing data for tabulation

Description Usage Arguments Examples

View source: R/dp_prepare_data.R

Description

function for preparing data for tabulation

Usage

1
2
dp_prepare_data_table(dp, link = NULL, align_var = TRUE, text_var = TRUE,
  aggregate_function = NULL, ...)

Arguments

dp

an object of type diffrproject

link

which link to produce table for

align_var

either a character vector of variable names or TRUE for all

text_var

either a character vector of variable names or TRUE for all

aggregate_function

a function able to resolve conflicts if for a specific variable for a token of text severla values exist, if NULL it defaults to modus() but could also be e.g. paste or something alike

...

further arguments passed through to aggregate_function

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
library(diffrprojects)
library(diffrprojectswidget)

dp <-
diffrproject$new()$
  text_add(list(text_version_1, text_version_2))$
  text_link()$
  text_align( maxDist = 1 )

dp$text_code_regex(
  text    = 1,
  x       = "change",
  pattern = "change",
  val     = "change"
)

dp_prepare_data_table(dp)

diffrprojectswidget documentation built on May 2, 2019, 5:10 a.m.