Learn R Programming

OmicsPrepR (version 0.1.1)

load_omics: Load Proteomics or Metabolomics Data

Description

Load Proteomics or Metabolomics Data

Usage

load_omics(file, type = c("proteomics", "metabolomics"))

Value

A data frame containing the omics dataset

Arguments

file

Path to data file (.csv or .tsv)

type

Type of omics data ("proteomics" or "metabolomics")

Examples

Run this code
# \donttest{
# Create a temporary CSV file with example omics data
tmp <- tempfile(fileext = ".csv")
write.csv(matrix(rnorm(20), nrow = 5), tmp, row.names = FALSE)

# Load the omics data
data <- load_omics(tmp, type = "proteomics")
head(data)
# }

Run the code above in your browser using DataLab