Learn R Programming

BayesTools (version 0.2.18)

add_column: Adds column to BayesTools table

Description

Adds column to a BayesTools table while not breaking formatting, attributes, etc...

Usage

add_column(
  table,
  column_title,
  column_values,
  column_position = NULL,
  column_type = NULL
)

Value

returns an object of 'BayesTools_table' class.

Arguments

table

BayesTools table

column_title

title of the new column

column_values

values of the new column

column_position

position of the new column (defaults to NULL which appends the column to the end)

column_type

type of values of the new column table (important for formatting, defaults to NULL = the function tries to guess numeric / character based on the column_values but many more specific types are available)