rem_sample {promor}R Documentation

Remove user-specified samples

Description

This function removes user-specified samples from the data frame.

Usage

rem_sample(raw_df, rem)

Arguments

raw_df

A raw_df object.

rem

Name of the sample to remove.

Details

Value

A raw_df object.

Author(s)

Chathurani Ranathunge

See Also

corr_plot, create_df

Examples

## Use a data set containing technical replicates to create a raw_df object
raw_df <- create_df(
prot_groups = "https://raw.githubusercontent.com/caranathunge/promor_example_data/main/pg2.txt",
exp_design = "https://raw.githubusercontent.com/caranathunge/promor_example_data/main/ed2.txt",
tech_reps = TRUE
)
# Check the first few rows of the raw_df object
head(raw_df)

## Remove all technical replicates of "WT_4"
raw_df1 <- rem_sample(raw_df, "WT_4")

## Remove only technical replicate number 2 of "WT_4"
raw_df2 <- rem_sample(raw_df, "WT_4_2")


[Package promor version 0.2.1 Index]