adjustSampleManually: Adjust sample info manually

View source: R/miscellaneous.R

adjustSampleManuallyR Documentation

Adjust sample info manually

Description

Instead of adding a new sample the samples info can be manually adjusted using this function.

Usage

adjustSampleManually(
  source_df = sourceDataFrame(),
  sample_name,
  adjust_sample_input,
  update
)

Arguments

source_df

The source data.frame. Defaults to the current source_df of the package.

sample_name

Character value. The sample that is supposed to be adjusted.

adjust_sample_input

A named list. Each slot corresponds to the variable of source_df that is supposed to be adjusted.

update

Logical. Use with caution! If TRUE, the updated output data.frame will replace the current source_df of the package!

Value

The updated data.frame is returned invisibly.

Examples


 # adjust image link
 
 adjustSampleManually(
    source_df = sourceDataFrame(), # default 
    sample_name = "275_T", 
    adjust_sample_input = list(link_image = "https://some-link-to-image.jpeg?dl=1")
    update = TRUE # immediately saves the result in /data/source_df.rda
    )


theMILOlab/SPATAData documentation built on Aug. 27, 2024, 5:04 p.m.