Skip to contents

Adds new columns to an existing metadata data frame in the STID object.

Usage

AddMetaColumn(STID_obj, ...)

# S3 method for class 'STID'
AddMetaColumn(
  STID_obj = NULL,
  meta_key = NULL,
  add_data = NULL,
  ignore_rownm = FALSE,
  ...
)

Arguments

STID_obj

An STID object

...

Additional arguments passed to methods

meta_key

Character, metadata key to modify

add_data

Data frame, new columns to add

ignore_rownm

Logical, whether to ignore row name matching (default: FALSE)

Value

Modified STID object with added metadata columns

Examples

if (FALSE) { # \dontrun{
# Add new columns to raw metadata
new_cols <- data.frame(new_score = runif(ncol(ist_obj)))
STID_obj <- AddMetaColumn(ist_obj,
                         meta_key = "raw",
                         add_data = new_cols)
} # }