append_to_column: Append a string to a column

View source: R/append_to_column.R

append_to_columnR Documentation

Append a string to a column

Description

Appends a dynamic string to a column condition on whether the another column 'significant' is true or false.

Usage

append_to_column(
  data,
  sig_text = "(significant)",
  insig_text = "(not significant)",
  from = "dataset",
  to = "dataset",
  nchar_max = NULL,
  nchar_max_collapse = "<br>"
)

Arguments

data

a data or overlay data.frame with dataset as column.

sig_text

what should be the significance text?

insig_text

what should be the insignificance text?

from

what column should be appended?

to

where should be appended column be inserted?

nchar_max

integer. maximum amount of characters (incl spaces) in the group. NULL means that there is no limit.

nchar_max_collapse

what should be the line seperator when nchar_max is specified?

Note

In order to correctly draw plotly points the identifier (dataset) must have a unique colors associated with it. This function appends the dataset column with a significance text.


lagelab/Genoppi documentation built on Oct. 13, 2022, 2:36 p.m.