Learn R Programming

diffrprojectswidget (version 0.1.5)

dp_prepare_data_table: function for preparing data for tabulation

Description

function for preparing data for tabulation

Usage

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

Run this code

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)


Run the code above in your browser using DataLab