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

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

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)

Value

returns an object of 'BayesTools_table' class.