check_input: Check proteomic data format

View source: R/check_input.R

check_inputR Documentation

Check proteomic data format

Description

Check if input data.frame columns match one of the four allowed formats.

Usage

check_input(df)

Arguments

df

data.frame containing proteomic data.

Value

list of two lists: check and allowed. check: list of logical vairables indicating if input match an allowed format. allowed: a list of all allowed formats.

Note

An item in the approved format list can appear more than once.

Examples

## Not run: 
tabl1 = data.frame(gene = letters,rep1=runif(26), rep2=rnorm(26))
check_input(tabl1)
tabl2 = data.frame(gene = letters,rep1=runif(26), rep2=rnorm(26), somethingelse=1:26)
check_input(tabl2)

## End(Not run)


lagelab/Genoppi documentation built on Oct. 13, 2022, 2:36 p.m.