Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gen_cond

Function allowing to create a vector indicating the membership of each sample to a condition.


Description

This function creates a vector of factors where each element refers to a condition to which a sample belongs.

Usage

gen.cond(nb_cond=2,nb_sample=5)

Arguments

nb_cond

Number of biological conditions.

nb_sample

Number of samples in each condition.

Value

A vector of factors of length nb_cond*nb_sample.

Author(s)

Quentin Giai Gianetto <quentin2g@yahoo.fr>

Examples

cond=gen.cond(nb_cond=2,nb_sample=6)
#[1] 1 1 1 1 1 1 2 2 2 2 2 2
#Levels: 1 2

imp4p

Imputation for Proteomics

v1.1
GPL-3
Authors
Quentin Giai Gianetto
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.