rm_check_log: Strip check log from an Olink data object

View source: R/olink_class.R

rm_check_logR Documentation

Strip check log from an Olink data object

Description

Removes the attached check log from either an olink_class tibble or an ArrowObject. For tibbles this converts the object to a plain tibble (removing the olink_class class and the check_log attribute). For ArrowObjects it removes the olink_check_log metadata key. If the input carries no check log, it is returned unchanged.

Usage

rm_check_log(df)

Arguments

df

An olink_class tibble or an ArrowObject with olink_check_log metadata.

Value

The data without the check log: a plain tibble (tbl_df) when given an olink_class tibble, or the ArrowObject with the olink_check_log metadata key removed when given an ArrowObject. Other inputs are returned unchanged.

Examples

## Not run: 
# read NPX data (returns olink_class object)
  npx_file <- system.file(
    "extdata",
    "npx_data_ext.parquet",
    package = "OlinkAnalyze"
  )

  npx_obj <- OlinkAnalyze::read_npx(
    filename = npx_file
  )

  # strip check log, returning a plain tibble
  npx_tbl <- OlinkAnalyze::rm_check_log(
    df = npx_obj
  )

  class(npx_tbl)

  OlinkAnalyze::extract_check_log(
    df = npx_tbl
  )

## End(Not run)


OlinkAnalyze documentation built on Sept. 18, 2026, 5:06 p.m.